Skip to content

Commit

Permalink
misc: small fix or general refactoring i did not bother commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Jun 22, 2024
1 parent 1209b8d commit 91e741a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/agent/namespaces/filesystem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ use colored::Colorize;
use super::{Action, Namespace};
use crate::agent::state::State;

// cast needed for Darwin apparently
#[allow(clippy::unnecessary_cast)]
fn parse_permissions(mode: u32) -> String {
let user = triplet(mode, S_IRUSR as u32, S_IWUSR as u32, S_IXUSR as u32);
let group = triplet(mode, S_IRGRP as u32, S_IWGRP as u32, S_IXGRP as u32);
Expand Down

0 comments on commit 91e741a

Please sign in to comment.