mirror of
https://github.com/troglobit/libite.git
synced 2026-11-14 19:03:05 +00:00
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:
1 parent
dff88a622d
commit
666a8ef7cd
5 files changed
+174
-14
No files matched your search
@@ -20,6 +20,7 @@ TESTS =
|
||||
TESTS += chomp
|
||||
TESTS += copyfile
|
||||
TESTS += fcopyfile
|
||||
TESTS += copyfile-symlink
|
||||
TESTS += dir
|
||||
TESTS += fexist
|
||||
TESTS += fisdir
|
||||
@@ -41,3 +42,4 @@ TESTS += which
|
||||
TESTS += yorn
|
||||
|
||||
check_PROGRAMS = $(TESTS)
|
||||
copyfile_symlink_SOURCES = copyfile-symlink.c
|
||||
Reference in new issue
Block a user