symlink bug still not fixed

Peter Sturdza psturdza at yahoo.com
Fri Apr 23 03:01:29 GMT 2004


Hi.

I found and reported a bug about a year ago regarding
symbolic links but haven't seen any mention of it
since and it is still present in 2.6.1-pre2.

Just want to make sure it isn't forgotten.

It can be reproduced by synchronizing two directories,
one of which contains a normal file and the other has
a symlink of the same name.  With the archive, update
and backup options set, rsync will always replace the
file with the symlink even when the file is newer (and
it will not save a backup either).  This can lead to
unexpected loss of data.

In other words:
mkdir foo1 foo2
ln -s apples foo1/oranges
touch foo1/apples foo2/apples foo2/oranges
rsync -avub foo1/ foo2/

and voila, the file foo2/oranges is overwritten by the
symlink.

Thanks,
peter






	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash


More information about the rsync mailing list