← Commit list

17764603f

Ron Yorston
Ron Yorston
2020-06-09
SUCCESS Duration: 152s

Subject

httpd: allow '-h' to work when daemonized with NOMMU enabled

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/httpd.c+3 -3
@@ -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);