From a26711a2d1464167be4ebc990fe21a3809a2da34 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 6 Apr 2023 21:20:28 +0200 Subject: libbb: consolidate NOMMU fix of restoring high bit in argv[0][0] function old new delta fork_or_rexec 46 56 +10 bootchartd_main 1087 1079 -8 cpio_main 674 661 -13 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 10/-21) Total: -11 bytes Signed-off-by: Denys Vlasenko --- networking/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/httpd.c') diff --git a/networking/httpd.c b/networking/httpd.c index 252ad6c..ddcb03b 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -2713,8 +2713,8 @@ 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 */ + argv_copy[0][0] &= 0x7f; /* undo re_rexec() damage */ close(n); } /* while (1) */ /* never reached */ -- cgit v1.1