summaryrefslogtreecommitdiff
path: root/xattrs.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-11-16 12:35:17 -0800
committerWayne Davison <wayned@samba.org>2009-11-16 12:35:17 -0800
commite4c598c830234fe3def0bae6ba45ca54071a9ee5 (patch)
treeb20aae8c324c20a41a3ff6e218a1b6aa8efe61ed /xattrs.c
parentae598f3847bd83b81effb6cc38719e790ed4c1cf (diff)
downloadrsync-e4c598c830234fe3def0bae6ba45ca54071a9ee5.tar.gz
Make some RERR_* choices better, and another noop_io_until_death() tweak.
Diffstat (limited to 'xattrs.c')
-rw-r--r--xattrs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xattrs.c b/xattrs.c
index 2b71270c..7e3b74a1 100644
--- a/xattrs.c
+++ b/xattrs.c
@@ -589,7 +589,7 @@ int recv_xattr_request(struct file_struct *file, int f_in)
if (F_XATTR(file) < 0) {
rprintf(FERROR, "recv_xattr_request: internal data error!\n");
- exit_cleanup(RERR_STREAMIO);
+ exit_cleanup(RERR_PROTOCOL);
}
lst += F_XATTR(file);
@@ -605,12 +605,12 @@ int recv_xattr_request(struct file_struct *file, int f_in)
if (!cnt || rxa->num != num) {
rprintf(FERROR, "[%s] could not find xattr #%d for %s\n",
who_am_i(), num, f_name(file, NULL));
- exit_cleanup(RERR_STREAMIO);
+ exit_cleanup(RERR_PROTOCOL);
}
if (!XATTR_ABBREV(*rxa) || rxa->datum[0] != XSTATE_ABBREV) {
rprintf(FERROR, "[%s] internal abbrev error on %s (%s, len=%ld)!\n",
who_am_i(), f_name(file, NULL), rxa->name, (long)rxa->datum_len);
- exit_cleanup(RERR_STREAMIO);
+ exit_cleanup(RERR_PROTOCOL);
}
if (am_sender) {