commit | ea4c43445c1fcb378b80216ef388eebc61a57696 | [log] [tgz] |
---|---|---|
author | Manuel Novoa III <mjn3@codepoet.org> | Wed Mar 19 18:09:03 2003 +0000 |
committer | Manuel Novoa III <mjn3@codepoet.org> | Wed Mar 19 18:09:03 2003 +0000 |
tree | 01295b8a4b3f31ff3684c0dbc61c6e4182d31466 | |
parent | 1cb1b64c35a9356575dc7c0e6125805c5ea62cf9 [diff] [blame] |
Restrict octal perms to <= 07777. Cosmetic error message change.
diff --git a/libbb/parse_mode.c b/libbb/parse_mode.c index 49573df..7132c76 100644 --- a/libbb/parse_mode.c +++ b/libbb/parse_mode.c
@@ -65,7 +65,7 @@ char *e; tmp = strtol(s, &e, 8); - if (*e || (tmp > 0xffffU)) { /* Check range and trailing chars. */ + if (*e || (tmp > 07777U)) { /* Check range and trailing chars. */ return 0; } *current_mode = tmp;