Skip to content

Commit 5273260

Browse files
committed
fix(utils): don't use O_NOFOLLOW in open_dir()
1 parent 509cfd8 commit 5273260

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/utils/raw.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ pub fn open_dir(p: &Path) -> std::io::Result<File> {
4545
#[cfg(not(windows))]
4646
pub fn open_dir(p: &Path) -> std::io::Result<File> {
4747
use std::fs::OpenOptions;
48-
use std::os::unix::fs::OpenOptionsExt;
4948

5049
let mut options = OpenOptions::new();
5150
options.read(true);
52-
options.custom_flags(libc::O_NOFOLLOW);
5351
options.open(p)
5452
}
5553

0 commit comments

Comments
 (0)