From: Jeremy Allison Date: Wed, 18 Sep 2019 02:26:13 +0000 (-0700) Subject: s3: VFS: vfs_streams_depot: Change streams_depot_unlink_internal() to call UNLINKAT(). X-Git-Tag: talloc-2.3.1~631 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e73caaed8226b5ca0c2603930928e36a5a97396d;p=thirdparty%2Fsamba.git s3: VFS: vfs_streams_depot: Change streams_depot_unlink_internal() to call UNLINKAT(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index c51bdac0058..10a22f5c22b 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -715,7 +715,10 @@ static int streams_depot_unlink_internal(vfs_handle_struct *handle, return -1; } - ret = SMB_VFS_NEXT_UNLINK(handle, smb_fname_stream); + ret = SMB_VFS_NEXT_UNLINKAT(handle, + dirfsp, + smb_fname_stream, + 0); TALLOC_FREE(smb_fname_stream); return ret; @@ -774,7 +777,10 @@ static int streams_depot_unlink_internal(vfs_handle_struct *handle, TALLOC_FREE(dirname); } - ret = SMB_VFS_NEXT_UNLINK(handle, smb_fname); + ret = SMB_VFS_NEXT_UNLINKAT(handle, + dirfsp, + smb_fname, + flags); TALLOC_FREE(smb_fname_base); return ret; }