diff options
author | Chuyan Zhang <me@zcy.moe> | 2023-11-26 02:33:01 -0800 |
---|---|---|
committer | Chuyan Zhang <me@zcy.moe> | 2023-11-26 02:33:01 -0800 |
commit | 9d1368b0ea380a9446b4697af668d1685464b6c7 (patch) | |
tree | 2103af418264cc70addc9cfc6ed7acac640f5151 /src/utils | |
parent | 777d5e01a34b8ebe6f1a5751b593266f93e88499 (diff) | |
download | myfs-9d1368b0ea380a9446b4697af668d1685464b6c7.tar.gz myfs-9d1368b0ea380a9446b4697af668d1685464b6c7.zip |
more code idk what they are im so tired ohno
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/permissions.rs | 6 |
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 +} |