uhttpd: add /sbin and /usr/sbin to path, increases bb-httpd compatibility
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 19 Mar 2010 01:50:56 +0000 (01:50 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 19 Mar 2010 01:50:56 +0000 (01:50 +0000)
contrib/package/uhttpd/src/uhttpd-cgi.c

index 4c1265bd1db21eff7743abb358f8182fb595418c..2a9fdc9e11123fdb0ff7f36ab9a8e656830bcbd2 100644 (file)
@@ -181,7 +181,7 @@ void uh_cgi_request(struct client *cl, struct http_request *req)
                                        /* common information */
                                        setenv("GATEWAY_INTERFACE", "CGI/1.1", 1);
                                        setenv("SERVER_SOFTWARE", "uHTTPd", 1);
                                        /* common information */
                                        setenv("GATEWAY_INTERFACE", "CGI/1.1", 1);
                                        setenv("SERVER_SOFTWARE", "uHTTPd", 1);
-                                       setenv("PATH", "/usr/bin:/bin", 1);
+                                       setenv("PATH", "/sbin:/usr/sbin:/bin:/usr/bin", 1);
 
 #ifdef HAVE_TLS
                                        /* https? */
 
 #ifdef HAVE_TLS
                                        /* https? */