diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-14 02:23:43 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-14 02:23:43 +0000 |
commit | ea62077b850076c4d7dc3cf78ebd1888928c6ddf (patch) | |
tree | 37b7584ae40b99edb5583fbc4392b62ffdadf278 /networking/wget.c | |
parent | 88ca06769028e442bf873b270c176ca0e9f021f8 (diff) | |
download | busybox-w32-ea62077b850076c4d7dc3cf78ebd1888928c6ddf.tar.gz busybox-w32-ea62077b850076c4d7dc3cf78ebd1888928c6ddf.tar.bz2 busybox-w32-ea62077b850076c4d7dc3cf78ebd1888928c6ddf.zip |
add open_read_close() and similar stuff
Diffstat (limited to 'networking/wget.c')
-rw-r--r-- | networking/wget.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/wget.c b/networking/wget.c index 264ae4483..7a931f363 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -219,9 +219,7 @@ int wget_main(int argc, char **argv) | |||
219 | } else if (opt & WGET_OPT_CONTINUE) { | 219 | } else if (opt & WGET_OPT_CONTINUE) { |
220 | output_fd = open(fname_out, O_WRONLY); | 220 | output_fd = open(fname_out, O_WRONLY); |
221 | if (output_fd >= 0) { | 221 | if (output_fd >= 0) { |
222 | beg_range = lseek(output_fd, 0, SEEK_END); | 222 | beg_range = xlseek(output_fd, 0, SEEK_END); |
223 | if (beg_range == (off_t)-1) | ||
224 | bb_perror_msg_and_die("lseek"); | ||
225 | } | 223 | } |
226 | /* File doesn't exist. We do not create file here yet. | 224 | /* File doesn't exist. We do not create file here yet. |
227 | We are not sure it exists on remove side */ | 225 | We are not sure it exists on remove side */ |