summaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko2021-10-12 22:39:11 +0200
committerDenys Vlasenko2021-10-13 00:09:07 +0200
commit62f1eed1e1916afbff8f9ce3f820626348e8b867 (patch)
treef404ee3cee51b73b80a84c19021464bb54ad0c2c /shell/ash.c
parentc33bbcb92fc255e4bb058e64874289cdeb0701f9 (diff)
downloadbusybox-62f1eed1e1916afbff8f9ce3f820626348e8b867.zip
busybox-62f1eed1e1916afbff8f9ce3f820626348e8b867.tar.gz
hush: in a comment, document what -i might be doing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 2d3cc8a..1982a24 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -14657,11 +14657,10 @@ int ash_main(int argc UNUSED_PARAM, char **argv)
}
state2:
state = 3;
- if (
+ if (iflag
#ifndef linux
- getuid() == geteuid() && getgid() == getegid() &&
+ && getuid() == geteuid() && getgid() == getegid()
#endif
- iflag
) {
const char *shinit = lookupvar("ENV");
if (shinit != NULL && *shinit != '\0')