From ea62077b850076c4d7dc3cf78ebd1888928c6ddf Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 14 Oct 2006 02:23:43 +0000 Subject: add open_read_close() and similar stuff --- networking/wget.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'networking/wget.c') diff --git a/networking/wget.c b/networking/wget.c index 264ae44..7a931f3 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -219,9 +219,7 @@ int wget_main(int argc, char **argv) } else if (opt & WGET_OPT_CONTINUE) { output_fd = open(fname_out, O_WRONLY); if (output_fd >= 0) { - beg_range = lseek(output_fd, 0, SEEK_END); - if (beg_range == (off_t)-1) - bb_perror_msg_and_die("lseek"); + beg_range = xlseek(output_fd, 0, SEEK_END); } /* File doesn't exist. We do not create file here yet. We are not sure it exists on remove side */ -- cgit v1.1