summaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorGlenn L McGrath2003-09-12 00:44:50 +0000
committerGlenn L McGrath2003-09-12 00:44:50 +0000
commit14092a1ed2369eead23fa9d642fd126b19564a27 (patch)
tree011a2fa7d5f543c238d1a07978674b75b57f3620 /networking/httpd.c
parent81155f8fa8d96c24b5aeda54c0c0997cab1f3019 (diff)
downloadbusybox-14092a1ed2369eead23fa9d642fd126b19564a27.zip
busybox-14092a1ed2369eead23fa9d642fd126b19564a27.tar.gz
Busybox CVS version ipcalc have problems:
- Can`t use 255.255.255.255 address - typo: double check for valid ip address and uncheck for valid mask httpd unseted SERVER_PORT (my bug from last_patch111). last_patch_112 from Vladimir N. Oleynik
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 60dbba4..b27437a 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1990,9 +1990,6 @@ int httpd_main(int argc, char *argv[])
if(uid > 0)
setuid(uid);
# endif
-# ifdef CONFIG_FEATURE_HTTPD_CGI
- addEnvPort("SERVER");
-# endif
#endif
#ifdef CONFIG_FEATURE_HTTPD_CGI
@@ -2005,6 +2002,9 @@ int httpd_main(int argc, char *argv[])
if(p) {
setenv("PATH", p, 0);
}
+# ifndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY
+ addEnvPort("SERVER");
+# endif
}
#endif