From: Jeremy Allison Date: Wed, 18 Sep 2019 02:10:24 +0000 (-0700) Subject: s3: VFS: vfs_streams_xattr: Convert streams_xattr_unlink_internal() to use UNLINKAT. X-Git-Tag: talloc-2.3.1~628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d69a9ba7e3065ae57b7de588cf08fc1324ae5d07;p=thirdparty%2Fsamba.git s3: VFS: vfs_streams_xattr: Convert streams_xattr_unlink_internal() to use UNLINKAT. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index b04fe723b67..78605469094 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -556,7 +556,10 @@ static int streams_xattr_unlink_internal(vfs_handle_struct *handle, char *xattr_name = NULL; if (!is_ntfs_stream_smb_fname(smb_fname)) { - return SMB_VFS_NEXT_UNLINK(handle, smb_fname); + return SMB_VFS_NEXT_UNLINKAT(handle, + dirfsp, + smb_fname, + flags); } /* If the default stream is requested, just open the base file. */ @@ -569,7 +572,10 @@ static int streams_xattr_unlink_internal(vfs_handle_struct *handle, return -1; } - ret = SMB_VFS_NEXT_UNLINK(handle, smb_fname_base); + ret = SMB_VFS_NEXT_UNLINKAT(handle, + dirfsp, + smb_fname_base, + flags); TALLOC_FREE(smb_fname_base); return ret;