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
This commit is contained in:
commit
45b644b3c1
1 changed files with 1 additions and 0 deletions
|
@ -274,6 +274,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
|
|||
libc::ETXTBSY => ExecutableFileBusy,
|
||||
libc::EXDEV => CrossesDevices,
|
||||
libc::EINPROGRESS => InProgress,
|
||||
libc::EOPNOTSUPP => Unsupported,
|
||||
|
||||
libc::EACCES | libc::EPERM => PermissionDenied,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue