Greetings all,

The code used to use  popen,  but apparently there is a security 
problem with it -- something to do with shell escapes, judging from 
the CVS entry.  It changed between 3.1.5 and 3.1.6.  Putting  popen  
back just for WIN32 seems the best way to go.

Cheers,
Lachlan

On Mon, 21 Jun 2004 08:32 pm, [EMAIL PROTECTED] wrote:
> While compiling htdig 3.2.0b5 on win 32 I found that method 'parse'
> of class 'ExternalParser' contains line:
>
> // NEAL - ENABLE/REWRITE THIS ASAP FOR WIN32
> #ifndef _MSC_VER //_WIN32
>
> I've made some changes to ExternalParser, to make it work under
> win32. There is no need to create another process or thread to run
> external parser - you can call:
> FILE *input = _popen((char *)cmdline, "rb" );
> that opens the pipe to read from.
>
> I've compiled that code succesfully and run htdig with some
> external parsers: antiword, xpdf and openoffice (under win2000).

-- 
[EMAIL PROTECTED]
ht://Dig developer DownUnder  (http://www.htdig.org)



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
ht://Dig Developer mailing list:
[EMAIL PROTECTED]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to