From 2e41ffe104579b0e7f5d09a2f02fb3b8e2b00d83 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 26 May 2021 11:45:42 -0700 Subject: [PATCH] s3: smbd: parent_dirname_compatible_open(), parent_smb_fname() -> SMB_VFS_PARENT_PATHNAME(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/reply.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 1b670020143..59fb20df3b5 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -7517,14 +7517,15 @@ static NTSTATUS parent_dirname_compatible_open(connection_struct *conn, struct file_id id; files_struct *fsp = NULL; int ret; - bool ok; + NTSTATUS status; - ok = parent_smb_fname(talloc_tos(), - smb_fname_dst_in, - &smb_fname_parent, - NULL); - if (!ok) { - return NT_STATUS_NO_MEMORY; + status = SMB_VFS_PARENT_PATHNAME(conn, + talloc_tos(), + smb_fname_dst_in, + &smb_fname_parent, + NULL); + if (!NT_STATUS_IS_OK(status)) { + return status; } ret = SMB_VFS_LSTAT(conn, smb_fname_parent); -- 2.47.3