diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 18:09:03 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 18:09:03 +0000 |
commit | ea4c43445c1fcb378b80216ef388eebc61a57696 (patch) | |
tree | 01295b8a4b3f31ff3684c0dbc61c6e4182d31466 /libbb/parse_mode.c | |
parent | 1cb1b64c35a9356575dc7c0e6125805c5ea62cf9 (diff) | |
download | busybox-w32-ea4c43445c1fcb378b80216ef388eebc61a57696.tar.gz busybox-w32-ea4c43445c1fcb378b80216ef388eebc61a57696.tar.bz2 busybox-w32-ea4c43445c1fcb378b80216ef388eebc61a57696.zip |
Restrict octal perms to <= 07777. Cosmetic error message change.
Diffstat (limited to 'libbb/parse_mode.c')
-rw-r--r-- | libbb/parse_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/parse_mode.c b/libbb/parse_mode.c index 49573dfbb..7132c76ef 100644 --- a/libbb/parse_mode.c +++ b/libbb/parse_mode.c | |||
@@ -65,7 +65,7 @@ extern int bb_parse_mode(const char *s, mode_t *current_mode) | |||
65 | char *e; | 65 | char *e; |
66 | 66 | ||
67 | tmp = strtol(s, &e, 8); | 67 | tmp = strtol(s, &e, 8); |
68 | if (*e || (tmp > 0xffffU)) { /* Check range and trailing chars. */ | 68 | if (*e || (tmp > 07777U)) { /* Check range and trailing chars. */ |
69 | return 0; | 69 | return 0; |
70 | } | 70 | } |
71 | *current_mode = tmp; | 71 | *current_mode = tmp; |