feature: no symbolic link handling (ignored or broken) #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FastSync has no handling for symbolic links:
src/client/scanner.c: When the scanner encounters a symlink,stat()follows the link and treats it as a regular file or directory. The symlink nature is lost. Line 103:stat(cur_path, &stats)— should uselstat()and handle symlinks specially.src/shared/metadata.c:file_restore_metadata()callschmod()andchown()which follow symlinks, potentially modifying the target instead of the link itself.src/shared/file.c: No code path to handle symlink creation on the receiver side.This means:
Suggested Fix:
lstat()in the scanner and detectS_ISLNK()SYMLINKstatus code to the protocolSeverity: medium