diff options
author | Denis Vlasenko | 2007-09-15 13:28:30 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-09-15 13:28:30 +0000 |
commit | 2535f12cf21b3dd481d59ea1678f9dc05c404efe (patch) | |
tree | 4a0a72b83a693b1dc9bf31acd7bcf6ee726d9a5c /networking | |
parent | 32eb1f6cb95024e9db28b689891d04769a8b9b35 (diff) | |
download | busybox-2535f12cf21b3dd481d59ea1678f9dc05c404efe.zip busybox-2535f12cf21b3dd481d59ea1678f9dc05c404efe.tar.gz |
httpd: do not clear environment
mount: mount helpers support (by Vladimir Dronnikov <dronnikov@gmail.ru>)
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index a888c24..a8e5df9 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -2089,7 +2089,13 @@ int httpd_main(int argc, char **argv) #endif } -#if ENABLE_FEATURE_HTTPD_CGI +#if 0 /*was #if ENABLE_FEATURE_HTTPD_CGI*/ + /* User can do it himself: 'env - PATH="$PATH" httpd' + * We don't do it because we don't want to screw users + * which want to do + * 'env - VAR1=val1 VAR2=val2 https' + * and have VAR1 and VAR2 values visible in their CGIs. + * Besides, it is also smaller. */ { char *p = getenv("PATH"); /* env strings themself are not freed, no need to strdup(p): */ |