Skip to content

Commit

Permalink
fix(utils): don't use O_NOFOLLOW in open_dir()
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Mar 27, 2024
1 parent 0c501d5 commit ba6b5d0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/utils/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ pub fn open_dir(p: &Path) -> std::io::Result<File> {
#[cfg(not(windows))]
pub fn open_dir(p: &Path) -> std::io::Result<File> {
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)
}

Expand Down

0 comments on commit ba6b5d0

Please sign in to comment.