git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4be7605
)
r21166: Ensure we return the correct "EROFS" error on a non-writable
author
Jeremy Allison
<jra@samba.org>
Mon, 5 Feb 2007 23:33:53 +0000
(23:33 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:17:45 +0000
(12:17 -0500)
filesystem.
Jeremy.
(This used to be commit
1e25501e8e6c568ab8892e05e0a60197e267d2b5
)
source3/smbd/process.c
patch
|
blob
|
history
diff --git
a/source3/smbd/process.c
b/source3/smbd/process.c
index cfecd7fecb384aa27bcf05108f18a6b6a34c044d..5830af8f4350b1cd2239c7c75909099a36ad3ed5 100644
(file)
--- 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 */