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:
eeb1568
)
Better error messages when unlink fails
author
Martin Pool
<mbp@samba.org>
Wed, 8 Nov 2000 09:32:10 +0000
(09:32 +0000)
committer
Martin Pool
<mbp@samba.org>
Wed, 8 Nov 2000 09:32:10 +0000
(09:32 +0000)
receiver.c
patch
|
blob
|
blame
|
history
diff --git
a/receiver.c
b/receiver.c
index
b10f7c6
..
e5baa33
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-82,14
+82,15
@@
static void delete_one(struct file_struct *f)
{
if (!S_ISDIR(f->mode)) {
if (robust_unlink(f_name(f)) != 0) {
{
if (!S_ISDIR(f->mode)) {
if (robust_unlink(f_name(f)) != 0) {
- rprintf(FERROR,"
unlink %s
: %s\n",f_name(f),strerror(errno));
+ rprintf(FERROR,"
delete_one: unlink %s
: %s\n",f_name(f),strerror(errno));
} else if (verbose) {
rprintf(FINFO,"deleting %s\n",f_name(f));
}
} else {
if (do_rmdir(f_name(f)) != 0) {
if (errno != ENOTEMPTY && errno != EEXIST)
} else if (verbose) {
rprintf(FINFO,"deleting %s\n",f_name(f));
}
} else {
if (do_rmdir(f_name(f)) != 0) {
if (errno != ENOTEMPTY && errno != EEXIST)
- rprintf(FERROR,"rmdir %s : %s\n",f_name(f),strerror(errno));
+ rprintf(FERROR,"delete_one: rmdir %s: %s\n",
+ f_name(f), strerror(errno));
} else if (verbose) {
rprintf(FINFO,"deleting directory %s\n",f_name(f));
}
} else if (verbose) {
rprintf(FINFO,"deleting directory %s\n",f_name(f));
}