summaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-07-09 13:10:58 +0100
committerRon Yorston <rmy@pobox.com>2020-07-09 13:10:58 +0100
commit9c0b2f7020d7c30b21a930ef54be632e092e533b (patch)
treeb2187c40bd2fd9f49f73599fb08e52cb7a596de0 /networking/httpd.c
parenta8c6e20e332a9e11a9d28cd6770eadb9c9d73cb7 (diff)
parentd21a63f9fca8eb16f79de9b72d4a3484dfaec1fc (diff)
downloadbusybox-w32-9c0b2f7020d7c30b21a930ef54be632e092e533b.tar.gz
busybox-w32-9c0b2f7020d7c30b21a930ef54be632e092e533b.tar.bz2
busybox-w32-9c0b2f7020d7c30b21a930ef54be632e092e533b.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index eeaa4bec1..5105eedac 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -2871,6 +2871,7 @@ int httpd_main(int argc UNUSED_PARAM, char **argv)
2871#if !BB_MMU 2871#if !BB_MMU
2872 if (!(opt & OPT_FOREGROUND)) { 2872 if (!(opt & OPT_FOREGROUND)) {
2873 bb_daemonize_or_rexec(0, argv); /* don't change current directory */ 2873 bb_daemonize_or_rexec(0, argv); /* don't change current directory */
2874 re_execed = 0; /* for the following chdir to work */
2874 } 2875 }
2875#endif 2876#endif
2876#else /* ENABLE_PLATFORM_MINGW32 */ 2877#else /* ENABLE_PLATFORM_MINGW32 */
@@ -2878,8 +2879,8 @@ int httpd_main(int argc UNUSED_PARAM, char **argv)
2878 mingw_daemonize(argv); 2879 mingw_daemonize(argv);
2879#endif 2880#endif
2880 2881
2881 /* Chdir to home (unless we were re-execed for NOMMU case: 2882 /* Chdir to home (unless we were re_exec()ed for NOMMU case
2882 * we are already in the home dir then). 2883 * in mini_httpd_nommu(): we are already in the home dir then).
2883 */ 2884 */
2884#if ENABLE_PLATFORM_MINGW32 2885#if ENABLE_PLATFORM_MINGW32
2885 if (!(opt & OPT_INETD)) 2886 if (!(opt & OPT_INETD))