git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae87c43
)
Improved the error message when a dir-number is out of bounds.
author
Wayne Davison
<wayned@samba.org>
Tue, 22 May 2007 05:50:41 +0000
(
05:50
+0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 22 May 2007 05:50:41 +0000
(
05:50
+0000)
rsync.c
patch
|
blob
|
history
diff --git
a/rsync.c
b/rsync.c
index 9772b742e65b55a213dd77f88b2c19e1bd7b1f80..30c93ae0aea0213982cd1ea3b445ccf16850db5f 100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-166,9
+166,9
@@
int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr,
if (ndx < 0 || ndx >= dir_flist->count) {
ndx = NDX_FLIST_OFFSET - ndx;
rprintf(FERROR,
- "Invalid dir index: %d (%d - %d)\n",
- ndx, NDX_FLIST_OFFSET,
- NDX_FLIST_OFFSET - dir_flist->count);
+ "
[%s]
Invalid dir index: %d (%d - %d)\n",
+
who_am_i(),
ndx, NDX_FLIST_OFFSET,
+ NDX_FLIST_OFFSET - dir_flist->count
+ 1
);
exit_cleanup(RERR_PROTOCOL);
}