From 527326024a327ea745786522737b4005bea08fac Mon Sep 17 00:00:00 2001 From: rami3l Date: Wed, 27 Mar 2024 10:44:29 +0800 Subject: [PATCH] fix(utils): don't use `O_NOFOLLOW` in `open_dir()` --- src/utils/raw.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/utils/raw.rs b/src/utils/raw.rs index e4cea9083b..be50dfd585 100644 --- a/src/utils/raw.rs +++ b/src/utils/raw.rs @@ -45,11 +45,9 @@ pub fn open_dir(p: &Path) -> std::io::Result { #[cfg(not(windows))] pub fn open_dir(p: &Path) -> std::io::Result { use std::fs::OpenOptions; - use std::os::unix::fs::OpenOptionsExt; let mut options = OpenOptions::new(); options.read(true); - options.custom_flags(libc::O_NOFOLLOW); options.open(p) }