mirror of
https://github.com/mirror/wget.git
synced 2025-02-21 17:24:08 +08:00
* src/main.c (main): Unlink output document when --unlink is given
This commit is contained in:
parent
f354529708
commit
e7a4d818fa
@ -1987,6 +1987,11 @@ for details.\n\n"));
|
||||
# define FOPEN_OPT_ARGS
|
||||
#endif /* def __VMS [else] */
|
||||
|
||||
if (opt.unlink_requested)
|
||||
{
|
||||
unlink(opt.output_document);
|
||||
}
|
||||
|
||||
output_stream = fopen (opt.output_document,
|
||||
opt.always_rest ? "ab" : "wb"
|
||||
FOPEN_OPT_ARGS);
|
||||
|
Loading…
Reference in New Issue
Block a user