diff options
author | Denys Vlasenko | 2011-02-15 11:03:53 +0100 |
---|---|---|
committer | Denys Vlasenko | 2011-02-15 11:03:53 +0100 |
commit | 28556b95febc77ebdd2d2f2e0be4a0157dcaf735 (patch) | |
tree | dd3afbc19a616d7aa99847fec28ba9b47da81101 | |
parent | 26b80e8fe36510c8ec97ae07d9e16e53de32a4af (diff) | |
download | busybox-28556b95febc77ebdd2d2f2e0be4a0157dcaf735.zip busybox-28556b95febc77ebdd2d2f2e0be4a0157dcaf735.tar.gz |
wget: check for final write errors for -O FILE too
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/wget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c index 6c9a512..ad2bfa4 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -941,5 +941,8 @@ int wget_main(int argc UNUSED_PARAM, char **argv) while (*argv) exitcode |= download_one_url(*argv++); + if (G.output_fd >= 0) + xclose(G.output_fd); + return exitcode; } |