diff options
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index c2d226592..f4e95768f 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -2734,11 +2734,11 @@ int httpd_main(int argc UNUSED_PARAM, char **argv) #if !BB_MMU if (!(opt & OPT_FOREGROUND)) { bb_daemonize_or_rexec(0, argv); /* don't change current directory */ + re_execed = 0; /* for the following chdir to work */ } #endif - - /* Chdir to home (unless we were re-execed for NOMMU case: - * we are already in the home dir then). + /* Chdir to home (unless we were re_exec()ed for NOMMU case + * in mini_httpd_nommu(): we are already in the home dir then). */ if (!re_execed) xchdir(home_httpd); |