wget: check for final write errors for -O FILE too
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
26b80e8fe3
commit
28556b95fe
@ -941,5 +941,8 @@ int wget_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
while (*argv)
|
while (*argv)
|
||||||
exitcode |= download_one_url(*argv++);
|
exitcode |= download_one_url(*argv++);
|
||||||
|
|
||||||
|
if (G.output_fd >= 0)
|
||||||
|
xclose(G.output_fd);
|
||||||
|
|
||||||
return exitcode;
|
return exitcode;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user