diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-11-22 17:19:26 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-11-22 17:19:26 +0100 |
commit | d2277e262ff7dd2dd946ea16b93462f3dcdf0447 (patch) | |
tree | 985e045011ef9eb5b0136ce36c321cce015e56d7 /networking | |
parent | fcb9e07eca65b98093dd0b2b80451934a8719914 (diff) | |
download | busybox-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.tar.gz |
nommu: fix cases where we mangle argv[0][0]
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 1 |
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) /* Run a copy of ourself in inetd mode */ re_exec(argv_copy); } + argv_copy[0][0] &= 0x7f; /* parent, or vfork failed */ close(n); } /* while (1) */ |