diff options
author | Wayne Davison <wayned@samba.org> | 2007-05-22 05:50:41 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2007-05-22 05:50:41 +0000 |
commit | 59fd2a5e7df7c431929230e9899427a034bfd545 (patch) | |
tree | 9a844c26fe1089433bb0521f60b5438ca545313b /rsync.c | |
parent | ae87c43452b2b2d81d4e9c66153948d4ba334b5d (diff) | |
download | rsync-59fd2a5e7df7c431929230e9899427a034bfd545.tar.gz |
Improved the error message when a dir-number is out of bounds.
Diffstat (limited to 'rsync.c')
-rw-r--r-- | rsync.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |