From: Jeremy Allison Date: Fri, 13 Sep 2019 20:43:29 +0000 (-0700) Subject: s3: VFS: vfs_fruit: Convert fruit_rmdir_internal() to UNLINKAT(). X-Git-Tag: talloc-2.3.1~603 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb5e52377ae344c63d0e28dc0531075cd1d77d6c;p=thirdparty%2Fsamba.git s3: VFS: vfs_fruit: Convert fruit_rmdir_internal() to UNLINKAT(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index f206995fe2e..75d50234c05 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -2161,7 +2161,10 @@ static int fruit_rmdir_internal(struct vfs_handle_struct *handle, } TALLOC_FREE(ad); - ret = SMB_VFS_NEXT_UNLINK(handle, ad_smb_fname); + ret = SMB_VFS_NEXT_UNLINKAT(handle, + dirfsp, + ad_smb_fname, + 0); if (ret != 0) { DBG_ERR("Deleting [%s] failed\n", smb_fname_str_dbg(ad_smb_fname));