Skip to content

Commit

Permalink
remove unused warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tatref committed May 17, 2023
1 parent d0d9977 commit 2737583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion procfs/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl Process {
// for 2.6.39 <= kernel < 3.6 fstat doesn't support O_PATH see https://github.com/eminence/procfs/issues/265
let flags = match *crate::KERNEL {
Ok(v) if v < KernelVersion::new(3, 6, 0) => OFlags::DIRECTORY | OFlags::CLOEXEC,
Ok(v) => OFlags::PATH | OFlags::DIRECTORY | OFlags::CLOEXEC,
Ok(_) => OFlags::PATH | OFlags::DIRECTORY | OFlags::CLOEXEC,
Err(_) => OFlags::PATH | OFlags::DIRECTORY | OFlags::CLOEXEC,
};
let file = wrap_io_error!(root, rustix::fs::openat(rustix::fs::cwd(), &root, flags, Mode::empty()))?;
Expand Down

0 comments on commit 2737583

Please sign in to comment.