Skip to content

Commit

Permalink
add setuid, setgid and sticky bits on high 3-bits of 12
Browse files Browse the repository at this point in the history
  • Loading branch information
cocodery committed Dec 30, 2023
1 parent ca40b0c commit 79e70cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/non_octal_unix_permissions.rs
Expand Up @@ -50,7 +50,7 @@ fn check_binary_unix_permissions(lit_kind: &LitKind, snip: &str) -> bool {

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

0 comments on commit 79e70cc

Please sign in to comment.