Skip to content

Commit 79e70cc

Browse files
committed
add setuid, setgid and sticky bits on high 3-bits of 12
1 parent ca40b0c commit 79e70cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/non_octal_unix_permissions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn check_binary_unix_permissions(lit_kind: &LitKind, snip: &str) -> bool {
5050

5151
let group_sizes: Vec<usize> = num_lit.integer.split('_').map(str::len).collect();
5252
// check whether is binary format unix permissions
53-
if group_sizes.len() != 3 {
53+
if group_sizes.len() != 3 && group_sizes.len() != 4 {
5454
return false;
5555
}
5656
group_sizes.iter().all(|len| *len == 3)

0 commit comments

Comments
 (0)