diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-18 02:06:54 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-18 02:06:54 +0000 |
commit | eb85849b50a3c8af6ef0d3dbbf0fd1387e37d1f8 (patch) | |
tree | a970e91569040c0a431f3dbe649f732ff9be0717 /shell/ash.c | |
parent | 6b9e05392b4457f0ea808810761f8fb9efdffc44 (diff) | |
download | busybox-w32-eb85849b50a3c8af6ef0d3dbbf0fd1387e37d1f8.tar.gz busybox-w32-eb85849b50a3c8af6ef0d3dbbf0fd1387e37d1f8.tar.bz2 busybox-w32-eb85849b50a3c8af6ef0d3dbbf0fd1387e37d1f8.zip |
hush: deal with umask TODO (symbolic modes)
function old new delta
builtin_umask 79 125 +46
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 4acc30110..c53b080a4 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -12646,6 +12646,8 @@ umaskcmd(int argc UNUSED_PARAM, char **argv) | |||
12646 | S_IROTH, S_IWOTH, S_IXOTH | 12646 | S_IROTH, S_IWOTH, S_IXOTH |
12647 | }; | 12647 | }; |
12648 | 12648 | ||
12649 | /* TODO: use bb_parse_mode() instead */ | ||
12650 | |||
12649 | char *ap; | 12651 | char *ap; |
12650 | mode_t mask; | 12652 | mode_t mask; |
12651 | int i; | 12653 | int i; |
@@ -12712,7 +12714,6 @@ umaskcmd(int argc UNUSED_PARAM, char **argv) | |||
12712 | * | 12714 | * |
12713 | * Public domain. | 12715 | * Public domain. |
12714 | */ | 12716 | */ |
12715 | |||
12716 | struct limits { | 12717 | struct limits { |
12717 | uint8_t cmd; /* RLIMIT_xxx fit into it */ | 12718 | uint8_t cmd; /* RLIMIT_xxx fit into it */ |
12718 | uint8_t factor_shift; /* shift by to get rlim_{cur,max} values */ | 12719 | uint8_t factor_shift; /* shift by to get rlim_{cur,max} values */ |