httpd: summay of environment variables for cgi

Rainer Weikusat rainer.weikusat at sncag.com
Tue Sep 6 08:54:27 UTC 2005


"Vladimir N. Oleynik" <dzo at simtreas.ru> writes:
>> additional by busybox-httpd
>>     (PATH)
>
> It was required of my realization:
> 1) drop all environs
> 2) set only requires, PATH requires for scripts

A robust shell script should always set PATH, because that's the only
way to make sure that the 'call-by-name' that command execution
effectively is works reliably, ie calls the expected commands.

>>     REQUEST_URI
>
> Please wait ~ 3-10 day. ;-)
> Its REALLY knotty!

JFTR: I changed the CGI code to match the spec more closely a while
ago, because I was forced to actually use the code, and preferably
with as little effort as possible. The corresponding patch still
exists in the BTS, but as "the guy with the ball" doesn't like people
who dissent his somewhat strange conception of reality, it will (of
course) remain there. The code adds some minor goodies (eg zero copy).
Additionally, it is quite well tested, given that it is part of a
product that (daring) people have actually started to sell ;-), and
while I will not again sync "my" busybox tree against SVN any more
because I can really do without even more compiler-specific hacks, I
would of course be willing (and required by GPL) to share it if there
was any interest.



More information about the busybox mailing list