Lines Matching refs:p_path
148 printf("%s not overwritten\n", to.p_path); in copy_file()
153 to.p_path, YESNO); in copy_file()
166 (void)unlink(to.p_path); in copy_file()
174 if (link(entp->fts_path, to.p_path) != 0) { in copy_file()
175 warn("%s", to.p_path); in copy_file()
182 if (symlink(entp->fts_path, to.p_path) != 0) { in copy_file()
183 warn("%s", to.p_path); in copy_file()
191 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0); in copy_file()
194 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT, in copy_file()
198 warn("%s", to.p_path); in copy_file()
221 entp->fts_path, to.p_path, in copy_file()
241 warn("%s", to.p_path); in copy_file()
259 printf("%s not overwritten\n", to.p_path); in copy_link()
267 if (exists && unlink(to.p_path)) { in copy_link()
268 warn("unlink: %s", to.p_path); in copy_link()
271 if (symlink(llink, to.p_path)) { in copy_link()
284 printf("%s not overwritten\n", to.p_path); in copy_fifo()
287 if (exists && unlink(to.p_path)) { in copy_fifo()
288 warn("unlink: %s", to.p_path); in copy_fifo()
291 if (mkfifo(to.p_path, from_stat->st_mode)) { in copy_fifo()
292 warn("mkfifo: %s", to.p_path); in copy_fifo()
304 printf("%s not overwritten\n", to.p_path); in copy_special()
307 if (exists && unlink(to.p_path)) { in copy_special()
308 warn("unlink: %s", to.p_path); in copy_special()
311 if (mknod(to.p_path, from_stat->st_mode, from_stat->st_rdev)) { in copy_special()
312 warn("mknod: %s", to.p_path); in copy_special()
333 if (fdval ? futimens(fd, tspec) : utimensat(AT_FDCWD, to.p_path, tspec, in setfile()
335 warn("utimensat: %s", to.p_path); in setfile()
339 (islink ? lstat(to.p_path, &ts) : stat(to.p_path, &ts))) in setfile()
354 (islink ? lchown(to.p_path, fs->st_uid, fs->st_gid) : in setfile()
355 chown(to.p_path, fs->st_uid, fs->st_gid))) { in setfile()
357 warn("chown: %s", to.p_path); in setfile()
365 (islink ? lchmod(to.p_path, fs->st_mode) : in setfile()
366 chmod(to.p_path, fs->st_mode))) { in setfile()
367 warn("chmod: %s", to.p_path); in setfile()
374 (islink ? lchflags(to.p_path, fs->st_flags) : in setfile()
375 chflags(to.p_path, fs->st_flags))) { in setfile()
384 warn("chflags: %s", to.p_path); in setfile()
404 warn("fpathconf(..., _PC_ACL_NFS4) failed for %s", to.p_path); in preserve_fd_acls()
414 to.p_path); in preserve_fd_acls()
423 warn("failed to get acl entries while setting %s", to.p_path); in preserve_fd_acls()
427 warn("acl_is_trivial() failed for %s", to.p_path); in preserve_fd_acls()
436 warn("failed to set acl entries for %s", to.p_path); in preserve_fd_acls()