mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-21 13:24:15 -04:00
Complain if a --remove-s*-files option is set and we can't remove
the source file.
This commit is contained in:
1 parent
8f4ae68ca7
commit
acee1ad853
1 file changed
+7
-2
@@ -134,8 +134,13 @@ void successful_send(int ndx)
|
||||
} else
|
||||
offset = 0;
|
||||
f_name(file, fname + offset);
|
||||
if (remove_source_files && do_unlink(fname) == 0 && verbose > 1)
|
||||
rprintf(FINFO, "sender removed %s\n", fname + offset);
|
||||
if (remove_source_files) {
|
||||
if (do_unlink(fname) == 0) {
|
||||
if (verbose > 1)
|
||||
rprintf(FINFO, "sender removed %s\n", fname + offset);
|
||||
} else
|
||||
rsyserr(FERROR, errno, "sender failed to remove %s", fname + offset);
|
||||
}
|
||||
}
|
||||
|
||||
static void write_ndx_and_attrs(int f_out, int ndx, int iflags,
|
||||
|
||||
Reference in new issue
Block a user