s3: smbd: Add a dirfsp parameter to smbd_check_access_rights().
[amitay/samba.git] / source3 / modules / vfs_shadow_copy2.c
index b57720a73c796894445741fa494ea868431e7447..2d7fd0064de401a4d75d8dda66d027162d59e478 100644 (file)
@@ -1778,6 +1778,7 @@ static bool check_access_snapdir(struct vfs_handle_struct *handle,
        }
 
        status = smbd_check_access_rights(handle->conn,
+                                       handle->conn->cwd_fsp,
                                        &smb_fname,
                                        false,
                                        SEC_DIR_LIST);