diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-13 12:50:48 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-13 12:50:48 +0100 |
commit | 931c55f9e2b41473132683488820c6fb7c47506b (patch) | |
tree | 56cbfd7e7b1d85998192e5b61c132b9d4a465b8b /shell | |
parent | b3eec1651fb02d70716caa355f49320719f74c75 (diff) | |
download | busybox-w32-931c55f9e2b41473132683488820c6fb7c47506b.tar.gz busybox-w32-931c55f9e2b41473132683488820c6fb7c47506b.tar.bz2 busybox-w32-931c55f9e2b41473132683488820c6fb7c47506b.zip |
libbb: invert the meaning of SETUP_ENV_NO_CHDIR -> SETUP_ENV_CHDIR
Double negatives are hard to grok.
function old new delta
login_main 986 988 +2
su_main 474 470 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-4) Total: -2 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index 12b2db3a9..ca5c755b6 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -10791,7 +10791,7 @@ preadfd(void) | |||
10791 | write(STDOUT_FILENO, "^C", 2); | 10791 | write(STDOUT_FILENO, "^C", 2); |
10792 | raise(SIGINT); | 10792 | raise(SIGINT); |
10793 | /* raise(SIGINT) did not work! (e.g. if SIGINT | 10793 | /* raise(SIGINT) did not work! (e.g. if SIGINT |
10794 | * is SIG_INGed on startup, it stays SIG_IGNed) | 10794 | * is SIG_IGNed on startup, it stays SIG_IGNed) |
10795 | */ | 10795 | */ |
10796 | if (trap[SIGINT]) { | 10796 | if (trap[SIGINT]) { |
10797 | buf[0] = '\n'; | 10797 | buf[0] = '\n'; |
diff --git a/shell/hush.c b/shell/hush.c index 982fc356a..7d0dc67e4 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -10361,7 +10361,7 @@ int hush_main(int argc, char **argv) | |||
10361 | //it ignores TERM: | 10361 | //it ignores TERM: |
10362 | // bash -i -c 'kill $$; echo ALIVE' | 10362 | // bash -i -c 'kill $$; echo ALIVE' |
10363 | // ALIVE | 10363 | // ALIVE |
10364 | //it resets SIG_INGed HUP to SIG_DFL: | 10364 | //it resets SIG_IGNed HUP to SIG_DFL: |
10365 | // trap '' hup; bash -i -c 'kill -hup $$; echo ALIVE' | 10365 | // trap '' hup; bash -i -c 'kill -hup $$; echo ALIVE' |
10366 | // Hangup [the message is not printed by bash, it's the shell which started it] | 10366 | // Hangup [the message is not printed by bash, it's the shell which started it] |
10367 | //is talkative about jobs and exiting: | 10367 | //is talkative about jobs and exiting: |