Nmap Development mailing list archives
Re: Path to nmap.xsl for win32
From: David Fifield <david () bamsoftware com>
Date: Wed, 24 Sep 2008 13:22:24 -0600
On Wed, Sep 24, 2008 at 07:29:35PM +0100, jah wrote:
On 24/09/2008 00:24, David Fifield wrote:On Sun, Sep 14, 2008 at 02:13:56AM +0100, jah wrote:When writing xml output on windows the path to the stylesheet isn't written into xml-stylesheet, only the filename. Attached is a possible fix which uses GetModuleFileName in the same way as is done in nmap.cc:2787. I would like to have done something with the NMAPDATADIR declaration in nmap_winconfig.h, but honestly don't know what to do with it. Maybe this will do for now...How about using nmap_fetchfile to look up nmap.xsl? That would appear to work for all platforms, without having to use any platform-specific code. That would make the stylesheet location honor --datadir and NMAPDIR too, which I think it should. Can you try that approach and send another patch?Aye, thanks for the tip. The attached uses nmap_fetchfile and falls back to the original behaviour if it fails. I've tried it on win32 and linux and it looks good to me.
Thanks, I applied it. Does anybody know, is it more correct to put "file://" in front of the XSL stylesheet location when it points to a local file (as it does in the default case)? David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Path to nmap.xsl for win32 jah (Sep 13)
- Re: Path to nmap.xsl for win32 David Fifield (Sep 23)
- Re: Path to nmap.xsl for win32 jah (Sep 24)
- Re: Path to nmap.xsl for win32 David Fifield (Sep 24)
- Re: Path to nmap.xsl for win32 jah (Sep 24)
- Re: Path to nmap.xsl for win32 David Fifield (Sep 24)
- Re: Path to nmap.xsl for win32 jah (Sep 24)
- Re: Path to nmap.xsl for win32 David Fifield (Sep 29)
- Re: Path to nmap.xsl for win32 jah (Sep 29)
- Re: Path to nmap.xsl for win32 David Fifield (Sep 29)
- Re: Path to nmap.xsl for win32 jah (Sep 29)
- Re: Path to nmap.xsl for win32 jah (Sep 24)
- Re: Path to nmap.xsl for win32 David Fifield (Sep 23)