summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index cfecd7fecb..5830af8f43 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -973,7 +973,7 @@ static int switch_message(int type,char *inbuf,char *outbuf,int size,int bufsize
/* Does it need write permission? */
if ((flags & NEED_WRITE) && !CAN_WRITE(conn)) {
- return(ERROR_DOS(ERRSRV,ERRaccess));
+ return ERROR_NT(NT_STATUS_MEDIA_WRITE_PROTECTED);
}
/* IPC services are limited */