Skip to content

Commit

Permalink
fix linux build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Mar 13, 2024
1 parent e8c7b88 commit 99c8ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/linux/statics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub(super) static O_PATH_MAYBE: Lazy<OFlags> = Lazy::new(|| {

// for 2.6.39 <= kernel < 3.6 fstat doesn't support O_PATH see https://github.com/eminence/procfs/issues/265
match kernel {
Some(v) if v < *"3.6.0" => OFlags::empty(),
Some(v) if v < String::from("3.6.0") => OFlags::empty(),
Some(_) | None => OFlags::PATH,
}
});

0 comments on commit 99c8ac9

Please sign in to comment.