mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
fix the error code when we fail to open file (#232)
https://github.com/PowerShell/Win32-OpenSSH/issues/934
This commit is contained in:
parent
65751db59c
commit
dce738c33a
@ -91,6 +91,7 @@ errno_from_Win32Error(int win32_error)
|
||||
case ERROR_FILE_EXISTS:
|
||||
return EEXIST;
|
||||
case ERROR_FILE_NOT_FOUND:
|
||||
case ERROR_PATH_NOT_FOUND:
|
||||
return ENOENT;
|
||||
default:
|
||||
return win32_error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user