CIFS: Fix STATUS_CANNOT_DELETE error mapping for SMB2
authorPavel Shilovsky <pshilovsky@samba.org>
Fri, 18 Jul 2014 14:25:52 +0000 (18:25 +0400)
committerSteve French <smfrench@gmail.com>
Sat, 2 Aug 2014 06:23:04 +0000 (01:23 -0500)
commit21496687a79424572f46a84c690d331055f4866f
tree12eb6f5957805c3997590055d43f537910a1acd4
parentb770ddfa26fcb22ac85fbcdd0f5e88e65a118e01
CIFS: Fix STATUS_CANNOT_DELETE error mapping for SMB2

The existing mapping causes unlink() call to return error after delete
operation. Changing the mapping to -EACCES makes the client process
the call like CIFS protocol does - reset dos attributes with ATTR_READONLY
flag masked off and retry the operation.

Cc: stable@vger.kernel.org
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2maperror.c