1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00
Sachin Prabhu via samba-technical 47b4fcab16 s3-lib: Fix error mapping for EROFS
EROFS is incorrectly mapped to NT_STATUS_ACCESS_DENIED. This should
instead be mapped to NT_STATUS_MEDIA_WRITE_PROTECTED.

This change has already been done for the client in
unix_nt_errmap in libcli/util/errmap_unix.c
commit 9d055846f225 ("r3278: - rewrote the client side rpc...)")

SMB1 specs for SMB_COM_DELETE also specifies this mapping for EROFS
https://msdn.microsoft.com/en-us/library/ee441772.aspx

RH bz: 1171705
This problem was reported by Red Hat glusterfs QE who encountered
different errors when performing the same operation on a fuse mount and
on a cifs mount of the same underlying gluster filesystem.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Gunther Deschner <gdeschne@redhat.com>
Reported-by: Surabhi Bhalothia <sbhaloth@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2017-09-08 02:33:14 +02:00
..
2015-03-17 11:30:52 +01:00
2012-03-24 17:11:11 +01:00
2016-08-24 01:33:50 +02:00
2017-04-20 16:53:17 +02:00
2016-07-28 05:00:18 +02:00
2017-02-09 20:04:12 +01:00
2017-05-10 15:53:20 +02:00
2017-05-03 20:00:25 +02:00
2017-02-15 02:28:16 +01:00
2017-01-22 18:30:11 +01:00
2017-01-22 18:30:11 +01:00
2015-11-06 13:43:45 +01:00
2015-10-13 01:23:07 +02:00
2014-09-18 20:36:11 +02:00
2016-02-23 22:03:16 +01:00
2014-11-25 07:25:44 +01:00
2016-02-23 22:03:16 +01:00
2016-02-23 22:03:16 +01:00
2015-02-13 23:32:07 +01:00
2016-02-23 22:03:16 +01:00
2015-03-17 11:30:52 +01:00
2017-01-22 18:30:11 +01:00
2012-04-17 10:21:02 +02:00
2012-07-18 15:54:20 -07:00
2016-05-04 01:28:23 +02:00
2012-05-15 18:24:10 +02:00
2016-12-28 20:17:12 +01:00
2015-11-06 13:43:45 +01:00
2016-01-10 22:24:17 +01:00
2016-01-10 22:24:17 +01:00
2016-12-28 20:17:13 +01:00
2012-04-19 19:13:45 +02:00