Skip to content

Commit 3c7e220

Browse files
committed
Disable open_path_at() API on GNU/Hurd
O_PATH is not implemented on the Hurd.
1 parent 9310290 commit 3c7e220

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,12 @@ impl OpenOptions {
324324
/// Unix: sets O_NOFOLLOW | O_PATH. Many operations on the file handle are
325325
/// restricted.
326326
///
327-
/// AIX, DragonFlyBSD, iOS, MacOSX, NetBSD, OpenBSD, and illumos: Not
328-
/// implemented as O_PATH is not defined.
327+
/// AIX, DragonFlyBSD, GNU/Hurd, iOS, MacOSX, NetBSD, OpenBSD, and illumos:
328+
/// Not implemented as O_PATH is not defined.
329329
#[cfg(not(any(
330330
target_os = "aix",
331331
target_os = "dragonfly",
332+
target_os = "hurd",
332333
target_os = "ios",
333334
target_os = "macos",
334335
target_os = "netbsd",

src/unix.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ impl OpenOptionsImpl {
139139
#[cfg(not(any(
140140
target_os = "aix",
141141
target_os = "dragonfly",
142+
target_os = "hurd",
142143
target_os = "ios",
143144
target_os = "macos",
144145
target_os = "netbsd",

0 commit comments

Comments
 (0)