Skip to content

Commit 188d44d

Browse files
committed
Fix: Map EOPNOTSUPP to ErrorKind::Unsupported on Unix
This change maps the EOPNOTSUPP errno value (95) to std::io::ErrorKind::Unsupported in the decode_error_kind function for Unix platforms. Previously, it was incorrectly mapped to ErrorKind::Uncategorized. Fixes #139803
1 parent 07d3fd1 commit 188d44d

File tree

1 file changed

+1
-0
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+1
-0
lines changed

library/std/src/sys/pal/unix/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
274274
libc::ETXTBSY => ExecutableFileBusy,
275275
libc::EXDEV => CrossesDevices,
276276
libc::EINPROGRESS => InProgress,
277+
libc::EOPNOTSUPP => Unsupported,
277278

278279
libc::EACCES | libc::EPERM => PermissionDenied,
279280

0 commit comments

Comments
 (0)