We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NOATIME
PATH
1 parent 96b6768 commit f5b1acfCopy full SHA for f5b1acf
src/io/procfs.rs
@@ -209,12 +209,8 @@ fn is_mountpoint(file: BorrowedFd<'_>) -> bool {
209
210
/// Open a directory in `/proc`, mapping all errors to `io::Error::NOTSUP`.
211
fn proc_opendirat<P: crate::path::Arg, Fd: AsFd>(dirfd: &Fd, path: P) -> io::Result<OwnedFd> {
212
- let oflags = OFlags::NOFOLLOW
213
- | OFlags::PATH
214
- | OFlags::DIRECTORY
215
- | OFlags::CLOEXEC
216
- | OFlags::NOCTTY
217
- | OFlags::NOATIME;
+ // We could add `PATH`|`NOATIME` here but Linux 2.6.32 doesn't support it.
+ let oflags = OFlags::NOFOLLOW | OFlags::DIRECTORY | OFlags::CLOEXEC | OFlags::NOCTTY;
218
openat(dirfd, path, oflags, Mode::empty()).map_err(|_err| io::Error::NOTSUP)
219
}
220
0 commit comments