From: Jeremy Allison Date: Wed, 26 May 2021 19:17:29 +0000 (-0700) Subject: s3: smbd: In inherit_new_acl(), parent_smb_fname() -> SMB_VFS_PARENT_PATHNAME(). X-Git-Tag: tevent-0.11.0~674 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0dc842b4fab43c025ef79814684dbf33e936c972;p=thirdparty%2Fsamba.git s3: smbd: In inherit_new_acl(), 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 85e13e3a39f..bd42eb62f12 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -5106,13 +5106,14 @@ static NTSTATUS inherit_new_acl(files_struct *fsp) struct smb_filename *parent_dir = NULL; bool ok; - ok = parent_smb_fname(frame, - fsp->fsp_name, - &parent_dir, - NULL); - if (!ok) { + status = SMB_VFS_PARENT_PATHNAME(fsp->conn, + frame, + fsp->fsp_name, + &parent_dir, + NULL); + if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(frame); - return NT_STATUS_NO_MEMORY; + return status; } status = SMB_VFS_GET_NT_ACL_AT(fsp->conn,