Restrict octal perms to <= 07777. Cosmetic error message change.

This commit is contained in:
Manuel Novoa III
2003-03-19 18:09:03 +00:00
parent 1cb1b64c35
commit ea4c43445c
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ extern int bb_parse_mode(const char *s, mode_t *current_mode)
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;