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:
1a8e5c9
)
Improved do_lseek()'s failure message.
author
Wayne Davison
<wayned@samba.org>
Sun, 27 Feb 2005 21:12:13 +0000
(21:12 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 27 Feb 2005 21:12:13 +0000
(21:12 +0000)
fileio.c
patch
|
blob
|
blame
|
history
diff --git
a/fileio.c
b/fileio.c
index
7340970
..
45366f5
100644
(file)
--- a/
fileio.c
+++ b/
fileio.c
@@
-219,8
+219,11
@@
char *map_ptr(struct map_struct *map, OFF_T offset, int32 len)
exit_cleanup(RERR_FILEIO);
} else {
if (map->p_fd_offset != read_start) {
- if (do_lseek(map->fd,read_start,SEEK_SET) != read_start) {
- rprintf(FERROR,"lseek failed in map_ptr\n");
+ OFF_T ret = do_lseek(map->fd, read_start, SEEK_SET);
+ if (ret != read_start) {
+ rsyserr(FERROR, errno,
+ "lseek returned %.0f, not %.0f",
+ (double)ret, (double)read_start);
exit_cleanup(RERR_FILEIO);
}
map->p_fd_offset = read_start;