summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-02-05 23:33:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:45 -0500
commit14785319cccde0e36c07927a6a3b23f52cbfb944 (patch)
treef3e0f91e24feac1273513bcfd86253fa200bb044 /source3
parent4be76056d2dc900aad3b00930d3df12f33da2692 (diff)
downloadsamba-14785319cccde0e36c07927a6a3b23f52cbfb944.tar.gz
samba-14785319cccde0e36c07927a6a3b23f52cbfb944.tar.bz2
samba-14785319cccde0e36c07927a6a3b23f52cbfb944.zip
r21166: Ensure we return the correct "EROFS" error on a non-writable
filesystem. Jeremy. (This used to be commit 1e25501e8e6c568ab8892e05e0a60197e267d2b5)
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 */