Nmap Development mailing list archives
Re: grepable output bug
From: Fyodor <fyodor () insecure org>
Date: Tue, 20 Jan 2009 18:33:08 -0800
On Tue, Jan 20, 2009 at 07:48:55AM -0600, MadHat Unspecific wrote:
--- nmap-4.76.orig/output.cc 2008-09-10 13:32:35.000000000 -0500 +++ nmap-4.76/output.cc 2009-01-20 07:41:27.420350073 -0600 @@ -782,6 +782,12 @@ *p = '|'; p++; } + + p = grepvers; + while((p = strchr(p, ','))) { + p++; + } + if (!current->owner) *grepown = '\0'; else { Strncpy(grepown, current->owner,
It is not immediately obvious to me how this works to remove the commas. You tested it? Cheers, -F _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- grepable output bug MadHat Unspecific (Jan 20)
- Re: grepable output bug Fyodor (Jan 20)
- Re: grepable output bug MadHat Unspecific (Jan 20)
- Re: grepable output bug Michael Pattrick (Jan 21)
- Re: grepable output bug MadHat Unspecific (Jan 21)
- Re: grepable output bug Michael Pattrick (Jan 21)
- Re: grepable output bug Michael Pattrick (Jan 21)
- Re: grepable output bug MadHat Unspecific (Jan 20)
- Re: grepable output bug Fyodor (Jan 20)