Nmap Development mailing list archives
Re: Path to nmap.xsl for win32
From: David Fifield <david () bamsoftware com>
Date: Tue, 23 Sep 2008 17:24:28 -0600
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? 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)