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:
david 2011-06-14 02:29:40 +00:00
parent 87d9c4ba69
commit 17a57e186b

View file

@ -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");