Skip to content

Commit 45b644b

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#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

+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)