From: Ralph Boehme Date: Thu, 21 Jan 2021 13:37:53 +0000 (+0100) Subject: vfs_fruit: use synthetic_pathref() in delete_invalid_meta_stream() X-Git-Tag: tevent-0.11.0~1923 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bc983f5d5f11b62519ae023561eefe17f01105e;p=thirdparty%2Fsamba.git vfs_fruit: use synthetic_pathref() in delete_invalid_meta_stream() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 7c7c3cd036f..c453d74efde 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -3465,6 +3465,7 @@ static NTSTATUS delete_invalid_meta_stream( off_t size) { struct smb_filename *sname = NULL; + NTSTATUS status; int ret; bool ok; @@ -3477,13 +3478,15 @@ static NTSTATUS delete_invalid_meta_stream( return NT_STATUS_OK; } - sname = synthetic_smb_fname(talloc_tos(), - smb_fname->base_name, - AFPINFO_STREAM_NAME, - NULL, - smb_fname->twrp, - 0); - if (sname == NULL) { + status = synthetic_pathref(talloc_tos(), + handle->conn->cwd_fsp, + smb_fname->base_name, + AFPINFO_STREAM_NAME, + NULL, + smb_fname->twrp, + 0, + &sname); + if (!NT_STATUS_IS_OK(status)) { return NT_STATUS_NO_MEMORY; }