1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

If verbosity is greater than 1 (i.e. -vv or higher is used), automatically do reason display (i.e. --reason).

This commit is contained in:
jay
2014-07-22 01:51:46 +00:00
parent eea45a5bf0
commit f85416b75a

View File

@@ -1462,6 +1462,9 @@ void apply_delayed_options() {
free(delayed_options.xmlfilename); free(delayed_options.xmlfilename);
} }
if (o.verbose > 1)
o.reason = true;
// ISO 8601 date/time -- http://www.cl.cam.ac.uk/~mgk25/iso-time.html // ISO 8601 date/time -- http://www.cl.cam.ac.uk/~mgk25/iso-time.html
if (strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %H:%M %Z", local_time) <= 0) if (strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %H:%M %Z", local_time) <= 0)
fatal("Unable to properly format time"); fatal("Unable to properly format time");