1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 00:45:21 +02:00
openwrt-xburst/package/busybox/patches/440-httpd_chdir.patch
nico b90f9dbb18 [package] busybox: update to 1.19.2 (thanks to Peter Wagner)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28513 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-21 23:08:45 +00:00

11 lines
312 B
Diff

--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1886,6 +1886,7 @@ static void handle_incoming_and_exit(con
char *header_ptr = header_ptr;
Htaccess_Proxy *proxy_entry;
#endif
+ xchdir(home_httpd);
/* Allocation of iobuf is postponed until now
* (IOW, server process doesn't need to waste 8k) */