aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/parse_mode.c2
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)
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;