Nmap Development mailing list archives

Re: Call for testers: Nping 0.1BETA1 Released.


From: ithilgore <ithilgore.ryu.l () gmail com>
Date: Thu, 06 Aug 2009 22:32:52 +0300




Just poking around, the -d flag doesn't work when a debug level isn't specified.

Ben


This is usually an omission in getopt_* where the corresponding flag needs two ':' .
Something like:

  while((arg = getopt_long_only(argc, argv, "d::g:hi:U:P:m:o:p:s:T:vV",
          long_options, &option_index)) != EOF) 

Notice that 'd' has two colons.

From getopt_long_only manual:

"Two colons mean an option takes an optional arg; if there is text in the current argv-element"


-- ithilgore

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: