summaryrefslogtreecommitdiffhomepage
path: root/contrib
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-19 01:50:56 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-19 01:50:56 +0000
commit60f7191ff4609ebd056eb4a326f29a49b3c32fb5 (patch)
tree6b4fdf9e1bf95d2a399bd2ff4e50cd6b17262a2c /contrib
parenta7282c83787272d98a3c6bc8f5313987c0ae3d96 (diff)
uhttpd: add /sbin and /usr/sbin to path, increases bb-httpd compatibility
Diffstat (limited to 'contrib')
-rw-r--r--contrib/package/uhttpd/src/uhttpd-cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/package/uhttpd/src/uhttpd-cgi.c b/contrib/package/uhttpd/src/uhttpd-cgi.c
index 4c1265bd1..2a9fdc9e1 100644
--- a/contrib/package/uhttpd/src/uhttpd-cgi.c
+++ b/contrib/package/uhttpd/src/uhttpd-cgi.c
@@ -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);
- setenv("PATH", "/usr/bin:/bin", 1);
+ setenv("PATH", "/sbin:/usr/sbin:/bin:/usr/bin", 1);
#ifdef HAVE_TLS
/* https? */