aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-09-12 00:44:50 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-09-12 00:44:50 +0000
commit14092a1ed2369eead23fa9d642fd126b19564a27 (patch)
tree011a2fa7d5f543c238d1a07978674b75b57f3620 /networking/httpd.c
parent81155f8fa8d96c24b5aeda54c0c0997cab1f3019 (diff)
downloadbusybox-w32-14092a1ed2369eead23fa9d642fd126b19564a27.tar.gz
busybox-w32-14092a1ed2369eead23fa9d642fd126b19564a27.tar.bz2
busybox-w32-14092a1ed2369eead23fa9d642fd126b19564a27.zip
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 60dbba4d6..b27437ab2 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1990,9 +1990,6 @@ int httpd_main(int argc, char *argv[])
1990 if(uid > 0) 1990 if(uid > 0)
1991 setuid(uid); 1991 setuid(uid);
1992# endif 1992# endif
1993# ifdef CONFIG_FEATURE_HTTPD_CGI
1994 addEnvPort("SERVER");
1995# endif
1996#endif 1993#endif
1997 1994
1998#ifdef CONFIG_FEATURE_HTTPD_CGI 1995#ifdef CONFIG_FEATURE_HTTPD_CGI
@@ -2005,6 +2002,9 @@ int httpd_main(int argc, char *argv[])
2005 if(p) { 2002 if(p) {
2006 setenv("PATH", p, 0); 2003 setenv("PATH", p, 0);
2007 } 2004 }
2005# ifndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY
2006 addEnvPort("SERVER");
2007# endif
2008 } 2008 }
2009#endif 2009#endif
2010 2010