diff options
-rw-r--r-- | networking/httpd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 1757e09c9..c2d226592 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -2737,7 +2737,12 @@ int httpd_main(int argc UNUSED_PARAM, char **argv) | |||
2737 | } | 2737 | } |
2738 | #endif | 2738 | #endif |
2739 | 2739 | ||
2740 | xchdir(home_httpd); | 2740 | /* Chdir to home (unless we were re-execed for NOMMU case: |
2741 | * we are already in the home dir then). | ||
2742 | */ | ||
2743 | if (!re_execed) | ||
2744 | xchdir(home_httpd); | ||
2745 | |||
2741 | if (!(opt & OPT_INETD)) { | 2746 | if (!(opt & OPT_INETD)) { |
2742 | signal(SIGCHLD, SIG_IGN); | 2747 | signal(SIGCHLD, SIG_IGN); |
2743 | server_socket = openServer(); | 2748 | server_socket = openServer(); |