summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/permissions.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/permissions.rs b/src/utils/permissions.rs
index a3afe77..b1ec999 100644
--- a/src/utils/permissions.rs
+++ b/src/utils/permissions.rs
@@ -1,7 +1,7 @@
+use crate::disk::inode::InodeMode;
+use libc::{F_OK, S_ISGID, S_ISUID, S_IXGRP, X_OK};
use std::fs::File;
use std::io::BufRead;
-use libc::{F_OK, S_ISGID, S_ISUID, S_IXGRP, X_OK};
-use crate::disk::inode::InodeMode;
pub(crate) fn get_groups(pid: u32) -> Vec<u32> {
let file = File::open(format!("/proc/{pid}/task/{pid}/status"))
@@ -59,4 +59,4 @@ pub(crate) fn check_access(
mask -= mask & perm;
}
mask == 0
-} \ No newline at end of file
+}