mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Actually honor the append parameter to log_open.
It was looking at o.append_output instead. It didn't matter, because it was always called with o.append_output in that place anyway.
This commit is contained in:
parent
87d9c4ba69
commit
17a57e186b
1 changed files with 1 additions and 1 deletions
|
|
@ -1067,7 +1067,7 @@ int log_open(int logt, int append, char *filename) {
|
|||
if (!o.nmap_stdout)
|
||||
fatal("Could not assign %s to stdout for writing", DEVNULL);
|
||||
} else {
|
||||
if (o.append_output)
|
||||
if (append)
|
||||
o.logfd[i] = fopen(filename, "a");
|
||||
else
|
||||
o.logfd[i] = fopen(filename, "w");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue