server: Remap the EROFS errno value to STATUS_ACCESS_DENIED.

This commit is contained in:
Andrew Nguyen 2009-07-12 23:55:43 -05:00 committed by Alexandre Julliard
parent 42f9608269
commit 270179a78f
1 changed files with 1 additions and 1 deletions

View File

@ -602,8 +602,8 @@ void file_set_error(void)
case ENOSPC: set_error( STATUS_DISK_FULL ); break; case ENOSPC: set_error( STATUS_DISK_FULL ); break;
case EACCES: case EACCES:
case ESRCH: case ESRCH:
case EROFS:
case EPERM: set_error( STATUS_ACCESS_DENIED ); break; case EPERM: set_error( STATUS_ACCESS_DENIED ); break;
case EROFS: set_error( STATUS_MEDIA_WRITE_PROTECTED ); break;
case EBUSY: set_error( STATUS_FILE_LOCK_CONFLICT ); break; case EBUSY: set_error( STATUS_FILE_LOCK_CONFLICT ); break;
case ENOENT: set_error( STATUS_NO_SUCH_FILE ); break; case ENOENT: set_error( STATUS_NO_SUCH_FILE ); break;
case EISDIR: set_error( STATUS_FILE_IS_A_DIRECTORY ); break; case EISDIR: set_error( STATUS_FILE_IS_A_DIRECTORY ); break;