From 4f5928d286d5afd1ba2277f51de99ee637f3a07b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 26 May 2021 12:13:40 -0700 Subject: [PATCH] s3: smbd: open_file_ntcreate(), parent_smb_fname() -> SMB_VFS_PARENT_PATHNAME(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/open.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index ba8d4fbabee..85e13e3a39f 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -3527,12 +3527,13 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, req->vuid); } - ok = parent_smb_fname(talloc_tos(), - smb_fname, - &parent_dir_fname, - NULL); - if (!ok) { - return NT_STATUS_NO_MEMORY; + status = SMB_VFS_PARENT_PATHNAME(conn, + talloc_tos(), + smb_fname, + &parent_dir_fname, + NULL); + if (!NT_STATUS_IS_OK(status)) { + return status; } if (new_dos_attributes & FILE_FLAG_POSIX_SEMANTICS) { -- 2.47.3