mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r21166: Ensure we return the correct "EROFS" error on a non-writable
filesystem.
Jeremy.
(This used to be commit 1e25501e8e
)
This commit is contained in:
parent
4be76056d2
commit
14785319cc
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user