From: Wayne Davison Date: Sun, 17 Apr 2016 23:31:57 +0000 (-0700) Subject: If a backup fails (e.g. full disk) rsync should fail. X-Git-Tag: v3.1.3pre1~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b973bffa949a2407768e4ec8fb501b3fbe932f91;p=thirdparty%2Frsync.git If a backup fails (e.g. full disk) rsync should fail. Fixes bug 11668. --- diff --git a/rsync.c b/rsync.c index f1404ce1..b82e5988 100644 --- a/rsync.c +++ b/rsync.c @@ -659,7 +659,7 @@ int finish_transfer(const char *fname, const char *fnametmp, if (make_backups > 0 && overwriting_basis) { int ok = make_backup(fname, False); if (!ok) - return 1; + exit_cleanup(RERR_FILEIO); if (ok == 1 && fnamecmp == fname) fnamecmp = get_backup_name(fname); }