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