1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

vfs_fruit: fix fruit_rmdir() for the fruit:resource!=file case

The following code must only be executed for the fruit:resource=file
case. Otherwise no change in behaviour.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12427

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
This commit is contained in:
Ralph Boehme 2016-12-09 18:22:49 +01:00 committed by Uri Simchoni
parent 09c82a1ce1
commit 19854072db

View File

@ -3114,7 +3114,7 @@ static int fruit_rmdir(struct vfs_handle_struct *handle,
SMB_VFS_HANDLE_GET_DATA(handle, config,
struct fruit_config_data, return -1);
if (!handle->conn->cwd || !path || (config->rsrc == FRUIT_RSRC_XATTR)) {
if (config->rsrc != FRUIT_RSRC_ADFILE) {
goto exit_rmdir;
}