From 9d1368b0ea380a9446b4697af668d1685464b6c7 Mon Sep 17 00:00:00 2001 From: Chuyan Zhang Date: Sun, 26 Nov 2023 02:33:01 -0800 Subject: more code idk what they are im so tired ohno --- src/utils/permissions.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils') 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 { 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 +} -- cgit v1.2.3-70-g09d2