Honor the symbolic link option when copying files

Inspect source links without following them when COPYFILE_SYM is requested, before rejecting directories. This makes the documented option recreate link text instead of copying the referent, including dangling and directory links. Preserve requested link timestamps and report link-creation errors without overwriting the destination. Cover direct calls, destination directories, normal dereferencing and the existing rsync file caller.
This commit is contained in:
omrzk authored and Joachim Wiberg committed 2026-11-14 12:41:18 +01:00
1 parent dff88a622d
commit 666a8ef7cd
5 files changed
+174 -14

No files matched your search

+1
View File
@@ -5,6 +5,7 @@
/chomp
/copyfile
/fcopyfile
/copyfile-symlink
/dir
/fexist
/fisdir