From d9a734a00c10f61df0035f8f43d56cf77cc0a2d9 Mon Sep 17 00:00:00 2001 From: QIU Quan Date: Fri, 1 Apr 2016 21:40:55 +0800 Subject: [PATCH] Fix bug #11658 - ZFS snapshots access denied Check the return status of smbd_check_access_rights more precisely, to allow access to ZFS snapshots, where NT_STATUS_NOT_SUPPORTED is returned and previously regarded as access denied. Signed-off-by: QIU Quan --- source3/modules/vfs_shadow_copy2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index 07e2f8a..cf3623e 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -1164,7 +1164,7 @@ static bool check_access_snapdir(struct vfs_handle_struct *handle, &smb_fname, false, SEC_DIR_LIST); - if (!NT_STATUS_IS_OK(status)) { + if (status == NT_STATUS_ACCESS_DENIED) { DEBUG(0,("user does not have list permission " "on snapdir %s\n", smb_fname.base_name));