1
0
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:
Jeremy Allison 2007-02-05 23:33:53 +00:00 committed by Gerald (Jerry) Carter
parent 4be76056d2
commit 14785319cc

View File

@ -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 */