samba-bugs@samba.org
2008-Sep-23 22:30 UTC
DO NOT REPLY [Bug 5789] New: rsync trying to set times on symlinks
https://bugzilla.samba.org/show_bug.cgi?id=5789
Summary: rsync trying to set times on symlinks
Product: rsync
Version: 3.0.4
Platform: x86
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: paredes@aecom.yu.edu
QAContact: rsync-qa@samba.org
Greetings!
Recently we found ourselves needing to use over 70 symbolic links [all within
the documents area] on our website. These symlinks generate the annoying
"rsync: failed to set permissions on "/linkpath/linkfile.php":
Permission
denied (13)" when I run a cron with "rsync -azPHO
--rsync-path=/usr/local/rsync
--links -e ssh remote.machine:/source/ target".
Interestingly, a verbose output returns the following:
[output snipped]
set modtime of Linkfile.php to (1219952074) Thu Aug 28 15:34:34 2008
rsync: failed to set times on
"/library/webserver/documents/obgynwiki/linkfile.php": Permission
denied (13)
[more output snipped]
The symlinks do transfer correctly from source but rsync insists in changing
the timestamps. I know that symlink timestamps can't be changed. So I've
spent
a week trying to prevent rsync from changing symlink timestamps by
systematically editing rsync.c near lines 462 & and config.h.in near line
230
in an attempt to circumvent either preserve_times or lutines without success. I
even changed the default umask to recreate the symlinks hoping the problem
would go away. I've also followed the 540 relevant rsync mail list topics on
this.
I'm currently using rsync 3.0.4 with the fileflags.diff & crtimes.diff
patches
on OS-X 10.5.5.
Regards,
Bill Paredes
Computer Based Education
Albert Einstein College of Medicine
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2008-Sep-24 01:56 UTC
DO NOT REPLY [Bug 5789] rsync trying to set times on symlinks
https://bugzilla.samba.org/show_bug.cgi?id=5789
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
Summary|rsync trying to set times on|rsync trying to set times on
|symlinks |symlinks
------- Comment #1 from wayned@samba.org 2008-09-23 20:56 CST -------
This would have been better as a mailing-list question, btw.
Edit your config.h and comments out HAVE_LUTIMES, then recompile. Maybe also
complain to Apple about lutimes() not actually working.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
Seemingly Similar Threads
- DO NOT REPLY [Bug 5304] New: failed to set times (symlinks)
- DO NOT REPLY [Bug 5442] New: setting times to symlinks which do not point to existing files causes error reports
- DO NOT REPLY [Bug 7618] New: symlinks and --link-dest
- sftp SSH2_FXP_SYMLINK argument order
- Correction to PR #9631 (PR#9632)