Skip to content

Commit cd489d9

Browse files
committed
fix: remove AT_STATX_DONT_SYNC from statx calls
fixes #824
1 parent d14cffa commit cd489d9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/file_system.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,7 @@ impl FileSystemOs {
185185
Ok(crate::windows::symlink_metadata(path)?.into())
186186
} else if #[cfg(target_os = "linux")] {
187187
use rustix::fs::{AtFlags, CWD, FileType, StatxFlags};
188-
let statx = rustix::fs::statx(
189-
CWD,
190-
path,
191-
AtFlags::STATX_DONT_SYNC | AtFlags::SYMLINK_NOFOLLOW,
192-
StatxFlags::TYPE,
193-
)?;
188+
let statx = rustix::fs::statx(CWD, path, AtFlags::SYMLINK_NOFOLLOW, StatxFlags::TYPE)?;
194189
let file_type = FileType::from_raw_mode(statx.stx_mode.into());
195190
Ok(FileMetadata::new(file_type.is_file(), file_type.is_dir(), file_type.is_symlink()))
196191
} else {

0 commit comments

Comments
 (0)