Skip to content

Commit 9efd9f2

Browse files
committed
schema/defs-linux.json: fix max for FileMode
Current spec allows decimal 512 as a maximum value for FileMode, which is octal 1000, meaning sticky bit is set and no rwx permissions for anyone (aka s---------). This does not make sense,the maximum value should be 511 (which is octal 777, aka -rwxrwxrwx). Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 09ec668 commit 9efd9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema/defs-linux.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"description": "File permissions mode (in decimal, not octal)",
153153
"type": "integer",
154154
"minimum": 0,
155-
"maximum": 512
155+
"maximum": 511
156156
},
157157
"FileType": {
158158
"description": "Type of a block or special character device",

0 commit comments

Comments
 (0)