aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-11-22 17:19:26 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-11-22 17:19:26 +0100
commitd2277e262ff7dd2dd946ea16b93462f3dcdf0447 (patch)
tree985e045011ef9eb5b0136ce36c321cce015e56d7 /networking/httpd.c
parentfcb9e07eca65b98093dd0b2b80451934a8719914 (diff)
downloadbusybox-w32-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.tar.gz
busybox-w32-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.tar.bz2
busybox-w32-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.zip
nommu: fix cases where we mangle argv[0][0]
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 24482fe52..ecdf5b572 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -2243,6 +2243,7 @@ static void mini_httpd_nommu(int server_socket, int argc, char **argv)
2243 /* Run a copy of ourself in inetd mode */ 2243 /* Run a copy of ourself in inetd mode */
2244 re_exec(argv_copy); 2244 re_exec(argv_copy);
2245 } 2245 }
2246 argv_copy[0][0] &= 0x7f;
2246 /* parent, or vfork failed */ 2247 /* parent, or vfork failed */
2247 close(n); 2248 close(n);
2248 } /* while (1) */ 2249 } /* while (1) */