X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/bcacc18bdf1bdac625ef1f178e8e32892544cc30..59503278bfc27ad27c03dfaeab4e3de02198f81c:/util.c diff --git a/util.c b/util.c index e39f3cc1..f1665e3e 100644 --- a/util.c +++ b/util.c @@ -83,7 +83,7 @@ char *map_ptr(struct map_struct *map,OFF_T offset,int len) map->p_size = len; } - if (lseek(map->fd,offset,SEEK_SET) != offset || + if (do_lseek(map->fd,offset,SEEK_SET) != offset || (nread=read(map->fd,map->p,len)) != len) { fprintf(FERROR,"EOF in map_ptr! (offset=%d len=%d nread=%d errno=%d)\n", (int)offset, len, nread, errno);