Skip to content

Commit

Permalink
If a backup fails (e.g. full disk) rsync should fail.
Browse files Browse the repository at this point in the history
Fixes bug 11668.
  • Loading branch information
WayneD committed Apr 17, 2016
1 parent d1c8040 commit b973bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsync.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit b973bff

Please sign in to comment.