Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8f4ae68
)
Complain if a --remove-s*-files option is set and we can't remove
author
Wayne Davison
<wayned@samba.org>
Wed, 20 Sep 2006 01:53:32 +0000
(
01:53
+0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 20 Sep 2006 01:53:32 +0000
(
01:53
+0000)
the source file.
sender.c
patch
|
blob
|
blame
|
history
diff --git
a/sender.c
b/sender.c
index
907e6f0
..
6fcaa65
100644
(file)
--- a/
sender.c
+++ b/
sender.c
@@
-134,8
+134,13
@@
void successful_send(int ndx)
} else
offset = 0;
f_name(file, fname + offset);
} 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,
}
static void write_ndx_and_attrs(int f_out, int ndx, int iflags,