mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Hides the Windows error 19/ERROR_WRITE_PROTECT and convert it to errno EACCESS.
This commit is contained in:
parent
8d3e97b055
commit
ca7aa016b8
1 changed files with 1 additions and 0 deletions
1
mingw.c
1
mingw.c
|
|
@ -570,6 +570,7 @@ static void windows_errno(DWORD error)
|
|||
case ERROR_ACCESS_DENIED : /* in CreateDirectoryW() if dir is scheduled for deletion */
|
||||
case ERROR_CURRENT_DIRECTORY : /* in RemoveDirectoryW() if removing the current directory */
|
||||
case ERROR_SHARING_VIOLATION : /* in RemoveDirectoryW() if in use */
|
||||
case ERROR_WRITE_PROTECT : /* when dealing with read-only media/snapshot and trying to write to them */
|
||||
errno = EACCES;
|
||||
break;
|
||||
case ERROR_ALREADY_EXISTS : /* in CreateDirectoryW() if already exists */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue