mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 00:19:01 +00:00
5
nmap.cc
5
nmap.cc
@@ -1422,6 +1422,11 @@ void parse_options(int argc, char **argv) {
|
||||
case 'v':
|
||||
if (optarg && isdigit(optarg[0])) {
|
||||
o.verbose = atoi(optarg);
|
||||
if (o.verbose == 0) {
|
||||
o.nmap_stdout = fopen(DEVNULL, "w");
|
||||
if (!o.nmap_stdout)
|
||||
fatal("Could not assign %s to stdout for writing", DEVNULL);
|
||||
}
|
||||
} else {
|
||||
const char *p;
|
||||
o.verbose++;
|
||||
|
||||
Reference in New Issue
Block a user