From f85416b75a1d51a0c335546975bb33ad4bcc9848 Mon Sep 17 00:00:00 2001 From: jay Date: Tue, 22 Jul 2014 01:51:46 +0000 Subject: [PATCH] If verbosity is greater than 1 (i.e. -vv or higher is used), automatically do reason display (i.e. --reason). --- nmap.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nmap.cc b/nmap.cc index 149359160..5ba71fc92 100644 --- a/nmap.cc +++ b/nmap.cc @@ -1462,6 +1462,9 @@ void apply_delayed_options() { 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 if (strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %H:%M %Z", local_time) <= 0) fatal("Unable to properly format time");