From: Denys Vlasenko Date: Tue, 15 Feb 2011 10:03:53 +0000 (+0100) Subject: wget: check for final write errors for -O FILE too X-Git-Tag: 1_19_0~283 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=28556b95febc77ebdd2d2f2e0be4a0157dcaf735;p=oweals%2Fbusybox.git wget: check for final write errors for -O FILE too Signed-off-by: Denys Vlasenko --- diff --git a/networking/wget.c b/networking/wget.c index 6c9a51211..ad2bfa4b5 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; }