Skip to content

Commit d0a7c09

Browse files
committed
Don't use SYMLINK_NOFOLLOW in a statat call
This is not supported on 2.6 kernels, and we really don't expect this directory to be a symlink
1 parent bd3f514 commit d0a7c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/process/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ impl Process {
11831183
// Use fast path if available (Linux v6.2): https://github.com/torvalds/linux/commit/f1f1f2569901
11841184
let stat = wrap_io_error!(
11851185
self.root.join("fd"),
1186-
rustix::fs::statat(&self.fd, "fd", AtFlags::SYMLINK_NOFOLLOW)
1186+
rustix::fs::statat(&self.fd, "fd", AtFlags::empty())
11871187
)?;
11881188
if stat.st_size > 0 {
11891189
return Ok(stat.st_size as usize);

0 commit comments

Comments
 (0)