nommu: fix cases where we mangle argv[0][0]
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -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) */
|
||||
|
Reference in New Issue
Block a user