aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index f60daefc1..88e607f08 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -12742,7 +12742,7 @@ evalstring(char *s, int flags)
12742 12742
12743 exception_handler = savehandler; 12743 exception_handler = savehandler;
12744 if (ex) 12744 if (ex)
12745 longjmp(exception_handler->loc, ex); 12745 longjmp(exception_handler->loc, ex);
12746 12746
12747 return status; 12747 return status;
12748} 12748}
@@ -13556,8 +13556,8 @@ umaskcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
13556 } 13556 }
13557 } else { 13557 } else {
13558 char *modestr = *argptr; 13558 char *modestr = *argptr;
13559 /* numeric umasks are taken as-is */ 13559 /* numeric umasks are taken as-is */
13560 /* symbolic umasks are inverted: "umask a=rx" calls umask(222) */ 13560 /* symbolic umasks are inverted: "umask a=rx" calls umask(222) */
13561 if (!isdigit(modestr[0])) 13561 if (!isdigit(modestr[0]))
13562 mask ^= 0777; 13562 mask ^= 0777;
13563 mask = bb_parse_mode(modestr, mask); 13563 mask = bb_parse_mode(modestr, mask);