Lines Matching defs:path
194 char *path;
211 /* build target path, find out if target is same as source */
212 if (!stat(path = to, &to_sb)) {
216 (void) sprintf(path = pbuf, "%s/%s", to, (C = strrchr(from, '/')) ? ++C : from);
217 if (stat(path, &to_sb))
221 fprintf(stderr, gettext("install: %s isn't a regular file.\n"), path);
225 fprintf(stderr, gettext("install: %s and %s are the same file.\n"), from, path);
229 (void) unlink(path);
234 if ((to_fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, 0)) < 0) {
235 fprintf(stderr, gettext("install: %s: %s\n"), path, strerror(errno));
239 fprintf(stderr, gettext("install: chmod: %s: %s\n"), path, strerror(errno));
245 status = copy(from, to_fd, path); /* copy */
249 sprintf(buf, "strip %s", path);
252 if (chown(path, pp->pw_uid, gp->gr_gid) && errno != EPERM) {
253 fprintf(stderr, gettext("install: chown: %s: %s\n"), path, strerror(errno));
259 (void) unlink(path);