From: Jeremy Allison Date: Wed, 26 May 2021 18:45:42 +0000 (-0700) Subject: s3: smbd: parent_dirname_compatible_open(), parent_smb_fname() -> SMB_VFS_PARENT_PATH... X-Git-Tag: tevent-0.11.0~672 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e41ffe104579b0e7f5d09a2f02fb3b8e2b00d83;p=thirdparty%2Fsamba.git s3: smbd: parent_dirname_compatible_open(), parent_smb_fname() -> SMB_VFS_PARENT_PATHNAME(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- 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);