We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c95b5 commit a9859e7Copy full SHA for a9859e7
src/system/audit.rs
@@ -47,8 +47,9 @@ pub(crate) fn sudo_call<T>(
47
let mut target_groups = target_user.groups.clone();
48
inject_group(target_group.gid, &mut target_groups);
49
50
- #[cfg(test)]
51
- if (target_user.uid, target_group.gid) == (cur_user_id, cur_group_id)
+ if cfg!(test)
+ && target_user.uid == cur_user_id
52
+ && target_group.gid == cur_group_id
53
&& target_groups
54
.iter()
55
.filter(|x| **x != target_group.gid)
0 commit comments