diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-15 13:28:30 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-15 13:28:30 +0000 |
commit | 2535f12cf21b3dd481d59ea1678f9dc05c404efe (patch) | |
tree | 4a0a72b83a693b1dc9bf31acd7bcf6ee726d9a5c /networking | |
parent | 32eb1f6cb95024e9db28b689891d04769a8b9b35 (diff) | |
download | busybox-w32-2535f12cf21b3dd481d59ea1678f9dc05c404efe.tar.gz busybox-w32-2535f12cf21b3dd481d59ea1678f9dc05c404efe.tar.bz2 busybox-w32-2535f12cf21b3dd481d59ea1678f9dc05c404efe.zip |
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 a888c2424..a8e5df98c 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -2089,7 +2089,13 @@ int httpd_main(int argc, char **argv) | |||
2089 | #endif | 2089 | #endif |
2090 | } | 2090 | } |
2091 | 2091 | ||
2092 | #if ENABLE_FEATURE_HTTPD_CGI | 2092 | #if 0 /*was #if ENABLE_FEATURE_HTTPD_CGI*/ |
2093 | /* User can do it himself: 'env - PATH="$PATH" httpd' | ||
2094 | * We don't do it because we don't want to screw users | ||
2095 | * which want to do | ||
2096 | * 'env - VAR1=val1 VAR2=val2 https' | ||
2097 | * and have VAR1 and VAR2 values visible in their CGIs. | ||
2098 | * Besides, it is also smaller. */ | ||
2093 | { | 2099 | { |
2094 | char *p = getenv("PATH"); | 2100 | char *p = getenv("PATH"); |
2095 | /* env strings themself are not freed, no need to strdup(p): */ | 2101 | /* env strings themself are not freed, no need to strdup(p): */ |