Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 188d44d

Browse files
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‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /