add setuid, setgid and sticky bits on high 3-bits of 12

This commit is contained in:
cocodery 2023-12-30 23:03:47 +08:00
parent ca40b0c284
commit 79e70ccf6f

View File

@ -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)