X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3bee67337d0491f55654cf8e926592365e5a8502..59503278bfc27ad27c03dfaeab4e3de02198f81c:/io.c diff --git a/io.c b/io.c index 0021d956..4e43d33c 100644 --- a/io.c +++ b/io.c @@ -238,7 +238,7 @@ static int last_sparse; int sparse_end(int f) { if (last_sparse) { - lseek(f,-1,SEEK_CUR); + do_lseek(f,-1,SEEK_CUR); return (write(f,&last_byte,1) == 1 ? 0 : -1); } last_sparse = 0; @@ -260,7 +260,7 @@ static int write_sparse(int f,char *buf,int len) last_sparse=1; if (l1 > 0) - lseek(f,l1,SEEK_CUR); + do_lseek(f,l1,SEEK_CUR); if (l1 == len) return len; @@ -271,7 +271,7 @@ static int write_sparse(int f,char *buf,int len) } if (l2 > 0) - lseek(f,l2,SEEK_CUR); + do_lseek(f,l2,SEEK_CUR); return len; }