wget: check for final write errors for -O FILE too

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2011-02-15 11:03:53 +01:00
parent 26b80e8fe3
commit 28556b95fe

View File

@ -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;
}