httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From W G Stoddard <wgsto...@us.ibm.com>
Subject Re: [PATCH] NT CGI - Fetch interpreter from registry and oth
Date Sat, 13 Jun 1998 22:20:51 GMT
I did take some liberties in getting rid of tabs. Other than that, most
everything else (or the gratuitous ilk :-) was directed at making the code more
readable!

If the registery query fails to find the interpreter, the code still does the
shebang peek as a last resort. I was really tempted to eliminate the peek code
altogether (thinking like a windows weenie) then (thinking like a unix hack)
decided not.  Not too crazy about that 2048 buffer on the stack...

Regards,
Bill Stoddard
wgstodda@us.ibm.com


new-httpd-owner@apache.org on 06/13/98 01:56:55 PM
Please respond to new-httpd@apache.org
To: new-httpd@apache.org
cc:
Subject: Re: [PATCH] NT CGI - Fetch interpreter from registry and oth


W G Stoddard wrote:
>
> This patch uses a CGI script's file extension to search the registry for the
> interpreter, rather than shebang peeking the file. This should allow unix
> scripts to be run on NT without modifing the #! line in the script. Cleaned up
> the Win32 section of ap_call_exec a bit as well. Included this patch both
> inline and as a mime attachment.  Let me know if you experience problems with
> the inline patch. My mail program has been know to mangle text on occasion.
> Probably a config thing I've not quite mastered yet....

90% of the patch seems to be gratuitous reformatting, which makes it
rather hard to see what it really does.

Also, I think that #! should be optionally obeyed. I don't know if you
cater for that already, though.

Cheers,

Ben.

--
Ben Laurie            |Phone: +44 (181) 735 0686| Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org/
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author     http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache/

WE'RE RECRUITING! http://www.aldigital.co.uk/recruit/




Mime
View raw message