refresh busybox patches
[openwrt/svn-archive/archive.git] / package / busybox / patches / 440-httpd_chdir.patch
1 Index: busybox-1.7.2/networking/httpd.c
2 ===================================================================
3 --- busybox-1.7.2.orig/networking/httpd.c 2007-10-30 15:35:04.000000000 -0500
4 +++ busybox-1.7.2/networking/httpd.c 2007-10-30 15:35:04.000000000 -0500
5 @@ -1618,6 +1618,7 @@
6 #if ENABLE_FEATURE_HTTPD_BASIC_AUTH
7 int credentials = -1; /* if not required this is Ok */
8 #endif
9 + xchdir(home_httpd);
10
11 /* Allocation of iobuf is postponed until now
12 * (IOW, server process doesn't need to waste 8k) */