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 45b644b

Browse files
Rollup merge of #139822 - 0x79de:fix-eopnotsupp-mapping, r=dtolnay
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
2 parents b21c5cd + 188d44d commit 45b644b

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 によって変換されたページ (->オリジナル) /