diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-04-06 21:20:28 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-04-06 21:20:28 +0200 |
commit | a26711a2d1464167be4ebc990fe21a3809a2da34 (patch) | |
tree | c48559fea73287479418e5f10d38157f5377cae4 /networking/httpd.c | |
parent | 05f2bedaebd694605abd1f199fc25d93ad73840b (diff) | |
download | busybox-w32-a26711a2d1464167be4ebc990fe21a3809a2da34.tar.gz busybox-w32-a26711a2d1464167be4ebc990fe21a3809a2da34.tar.bz2 busybox-w32-a26711a2d1464167be4ebc990fe21a3809a2da34.zip |
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 <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r-- | networking/httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 252ad6c2d..ddcb03bca 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) | |||
2713 | /* Run a copy of ourself in inetd mode */ | 2713 | /* Run a copy of ourself in inetd mode */ |
2714 | re_exec(argv_copy); | 2714 | re_exec(argv_copy); |
2715 | } | 2715 | } |
2716 | argv_copy[0][0] &= 0x7f; | ||
2717 | /* parent, or vfork failed */ | 2716 | /* parent, or vfork failed */ |
2717 | argv_copy[0][0] &= 0x7f; /* undo re_rexec() damage */ | ||
2718 | close(n); | 2718 | close(n); |
2719 | } /* while (1) */ | 2719 | } /* while (1) */ |
2720 | /* never reached */ | 2720 | /* never reached */ |