aboutsummaryrefslogtreecommitdiff
path: root/networking
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
parentfcb9e07eca65b98093dd0b2b80451934a8719914 (diff)
downloadbusybox-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.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)
/* 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) */