https://bugzilla.samba.org/show_bug.cgi?id=13321
Bug ID: 13321
Summary: Rsync --copy-dest issue
Product: rsync
Version: 3.1.3
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
https://bugzilla.samba.org/show_bug.cgi?id=13321
--- Comment #1 from Anatoly Penkov ---
rsync -rlDi -z -t --no-h --out-format="%t %i %n %L" --copy-dest=/data/cache
--stats --chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r --delay-updates --partial
--delete-after --force --ignore-errors /data/data
r...@l-rel-dnl.
https://bugzilla.samba.org/show_bug.cgi?id=13317
--- Comment #27 from Carson Gaspar ---
(In reply to Dave Gordon from comment #23)
Reading this, I took a look at the rsync sources, and, indeed, rsync has a bug.
perform_io() does not correctly check the return code from write().
safe_write() does
https://bugzilla.samba.org/show_bug.cgi?id=13317
--- Comment #28 from Dave Gordon ---
(In reply to Carson Gaspar from comment #27)
Hmm? If you're referring to line 810 of io.c, which is the only write(2) call I
can see in perform_io(), in the current HEAD it looks like this:
810 if ((n = write