From 270179a78f214f30a0800add40fa1cb86d11924d Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Sun, 12 Jul 2009 23:55:43 -0500 Subject: [PATCH] server: Remap the EROFS errno value to STATUS_ACCESS_DENIED. --- server/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/file.c b/server/file.c index dc93b4bcfdf..98017b9fe2f 100644 --- a/server/file.c +++ b/server/file.c @@ -602,8 +602,8 @@ void file_set_error(void) case ENOSPC: set_error( STATUS_DISK_FULL ); break; case EACCES: case ESRCH: + case EROFS: 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 ENOENT: set_error( STATUS_NO_SUCH_FILE ); break; case EISDIR: set_error( STATUS_FILE_IS_A_DIRECTORY ); break;