Skip to content

Commit 6e19cdb

Browse files
kbleesdscho
authored andcommitted
Win32: add symlink-specific error codes
Signed-off-by: Karsten Blees <[email protected]>
1 parent 36de94a commit 6e19cdb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compat/mingw.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ int err_win_to_posix(DWORD winerr)
7070
case ERROR_INVALID_PARAMETER: error = EINVAL; break;
7171
case ERROR_INVALID_PASSWORD: error = EPERM; break;
7272
case ERROR_INVALID_PRIMARY_GROUP: error = EINVAL; break;
73+
case ERROR_INVALID_REPARSE_DATA: error = EINVAL; break;
7374
case ERROR_INVALID_SIGNAL_NUMBER: error = EINVAL; break;
7475
case ERROR_INVALID_TARGET_HANDLE: error = EIO; break;
7576
case ERROR_INVALID_WORKSTATION: error = EACCES; break;
@@ -84,6 +85,7 @@ int err_win_to_posix(DWORD winerr)
8485
case ERROR_NEGATIVE_SEEK: error = ESPIPE; break;
8586
case ERROR_NOACCESS: error = EFAULT; break;
8687
case ERROR_NONE_MAPPED: error = EINVAL; break;
88+
case ERROR_NOT_A_REPARSE_POINT: error = EINVAL; break;
8789
case ERROR_NOT_ENOUGH_MEMORY: error = ENOMEM; break;
8890
case ERROR_NOT_READY: error = EAGAIN; break;
8991
case ERROR_NOT_SAME_DEVICE: error = EXDEV; break;
@@ -104,6 +106,9 @@ int err_win_to_posix(DWORD winerr)
104106
case ERROR_PIPE_NOT_CONNECTED: error = EPIPE; break;
105107
case ERROR_PRIVILEGE_NOT_HELD: error = EACCES; break;
106108
case ERROR_READ_FAULT: error = EIO; break;
109+
case ERROR_REPARSE_ATTRIBUTE_CONFLICT: error = EINVAL; break;
110+
case ERROR_REPARSE_TAG_INVALID: error = EINVAL; break;
111+
case ERROR_REPARSE_TAG_MISMATCH: error = EINVAL; break;
107112
case ERROR_SEEK: error = EIO; break;
108113
case ERROR_SEEK_ON_DEVICE: error = ESPIPE; break;
109114
case ERROR_SHARING_BUFFER_EXCEEDED: error = ENFILE; break;

0 commit comments

Comments
 (0)