[bug] copying remote files to forbidden directory
alexm at hsys.msk.ru
alexm at hsys.msk.ru
Thu Aug 1 09:20:02 EST 2002
Hello,
[ please Cc: me, I'm not subscribed here. ]
we were bitten by another rsync bug of the same nature as was
discussed in http://lists.samba.org/pipermail/rsync/2002-May/007399.html
alexm at rack8:~$ rsync -az -e ssh rack6.domain.ru:/etc/passwd /var/tmp/forbiden-dir/
mkstemp .passwd.oPlFQm failed: Permission denied
alexm at rack8:~$ echo $?
0
So our scripts wreak havoc.
However, patch suggested by Dave Dykstra,
http://lists.samba.org/pipermail/rsync/2002-February/006371.html
helps:
alexm at rack8:~$ rsync -az -e ssh rack6.domain.ru:/etc/passwd /var/tmp/forbidden-dir/
mkstemp .passwd.2lGEBO failed: Permission denied
rsync error: partial transfer (code 23) at main.c(925)
alexm at rack8:~$ echo $?
23
I do not know about consequences of that patch, but it certainly fixes
last of the four bug we have stumped on (three of them seem to be
eliminated in 2.5.5). I believe it would be great to apply the patch
or to fix the problem in some other way (in that case I'd be glad to
test it).
Thanks, especially to Dave once again,
--alexm
More information about the rsync
mailing list