rsync --without lutimes

Shad Sterling me at shadsterling.com
Fri Oct 12 23:48:41 CEST 2007


Here's a patch to rsync.spec that lets you say "--without lutimes" to 
override detection and build without support for lutimes.  (It's a bit 
hackish, but it works.)


You can see the reason at 
https://bugzilla.samba.org/show_bug.cgi?id=4977 ; here's a summary:

rsync will make calls to lutimes (to change the mtime of symlinks) if 
support for lutimes is detected at build-time.  lutimes support appears 
to be fs-specific, so calls to lutimes can fail even on systems where 
the build-time detection succeeds.  This results in potentially large 
numbers of error messages, which aren't likely to mean anything 
important (it means the symlinks created by rsync don't have the mtime 
of the symlink it was copying - the symlink does exist, and the target 
is unaffected).

Since there isn't a run-time option to tell rsync to not call lutimes, I 
made this patch to provide a build-time option to never call lutimes.



I am not subscribed to the list, please CC: replies to me at shadsterling.com

-- 

Shad Sterling
me at shadsterling.com
http://shadsterling.com



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rsync.spec-lutimes.patch
Url: /mailman/pipermail/pld-devel-en/attachments/20071012/887bad25/attachment.pl 


More information about the pld-devel-en mailing list