mirror of https://github.com/mirror/busybox.git
wget: check for final write errors for -O FILE too
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_19_stable
parent
26b80e8fe3
commit
28556b95fe
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue