DO NOT REPLY [Bug 7668] New: Add --omit-symlink-times option, same purpose as --omit-dir-times

samba-bugs at samba-bugs at
Tue Sep 7 06:55:33 MDT 2010

           Summary: Add --omit-symlink-times option, same purpose as --omit-
           Product: rsync
           Version: 3.0.7
          Platform: All
        OS/Version: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: korvus at
         QAContact: rsync-qa at

When using rsnyc, files are always recreated (as the user performing the rsync)
on the destination when the source file has a later mtime, regardless of
changes.  Symlinks however, are NOT recreated when the mtime differs; instead,
the mtime is simply adjusted on the destination.  This is problematic because a
user who does not own a symlink can not adjust the mtime of that symlink to a
time that isn't time(NULL) (now) - see utimes(2).  Thus rsync fails with
"failed to set times on...".  The rest of the rsync completes, but scripts
utilizing rsync may rely on the return codes.

This is likely the same reason that the --omit-dir-times option exists: it is
not trivial (or necessary) to recreate a directory to update the mtime.  I have
a patch which adds the --omit-symlink-times option to rsync, I will submit it
if anyone is interested in committing it.

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list