]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 17 Sep 2014 15:06:53 +0000 (17:06 +0200)
commit7aadcce63d6b631f92bb2b8ff5eb8e284be81708
tree26293bd8ed994c5eaa522c947bd64da22fb8d0fb
parent0884f8d4139431deb0b98ba0d6fb2d17e2c25c84
CIFS: Fix STATUS_CANNOT_DELETE error mapping for SMB2

commit 21496687a79424572f46a84c690d331055f4866f upstream.

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.

Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/cifs/smb2maperror.c