Fixed bug that caused rsync to lose exit status of its child processes.
authorDavid Dykstra <dwd@samba.org>
Thu, 9 Jan 2003 19:04:06 +0000 (19:04 +0000)
committerDavid Dykstra <dwd@samba.org>
Thu, 9 Jan 2003 19:04:06 +0000 (19:04 +0000)
commitee7118a8164ca250abd2cc33aa4dbc8a45594682
tree91f12ff484b8ea458c772ae2d22fe1a097e67af3
parent95dd949c09474942fe580af221298f6eb2176d87
Fixed bug that caused rsync to lose exit status of its child processes.
Based on patch submited by David R. Staples.  Todd Vander Does contributed
the following test which showed the problem:
  > mkdir /tmp/nowrite
  > chmod -w /tmp/nowrite
  > rsync /etc/group /tmp/nowrite || echo $status
  mkstemp .group.cUaaeY failed
  rsync error: partial transfer (code 23) at main.c(518)
  23
  > rsync -e ssh loki:/etc/group /tmp/nowrite || echo $status
  mkstemp .group.1rayeY failed
  > rsync -e ssh loki:/etc/group /tmp/nowrite && echo $status
  mkstemp .group.fbaGiY failed
  0
The remote copy should have returned non-zero exit code like the local copy.
NEWS
main.c