summaryrefslogtreecommitdiff
path: root/lib/convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/convert.c')
-rw-r--r--lib/convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/convert.c b/lib/convert.c
index 071268e..a4639c4 100644
--- a/lib/convert.c
+++ b/lib/convert.c
@@ -46,7 +46,7 @@ mode_t get_mode(const char* next) {
mode_t mode = (mode_t)strtol(next, &end, 8);
if (!end) return 0;
while(isspace(*end)) end++;
- if (*end != '\0' || (unsigned) mode < 010000) {
+ if (*end != '\0' || (unsigned) mode >= 010000) {
error("invalid file mode: `%s`", next);
}
return mode;