From 97c12be097f5b26fdcc2ee50da1d169ddce7731b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 26 May 2021 11:07:53 -0700 Subject: [PATCH] s3: VFS: linux_xfs_sgid. parent_smb_fname() -> SMB_VFS_PARENT_PATHNAME(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_linux_xfs_sgid.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/source3/modules/vfs_linux_xfs_sgid.c b/source3/modules/vfs_linux_xfs_sgid.c index 4f07ceab092..a08e2d40f83 100644 --- a/source3/modules/vfs_linux_xfs_sgid.c +++ b/source3/modules/vfs_linux_xfs_sgid.c @@ -31,7 +31,7 @@ static int linux_xfs_sgid_mkdirat(vfs_handle_struct *handle, struct smb_filename *fname = NULL; int mkdir_res; int res; - bool ok; + NTSTATUS status; DEBUG(10, ("Calling linux_xfs_sgid_mkdirat(%s)\n", smb_fname->base_name)); @@ -53,9 +53,14 @@ static int linux_xfs_sgid_mkdirat(vfs_handle_struct *handle, return -1; } - ok = parent_smb_fname(talloc_tos(), fname, &dname, NULL); - if (!ok) { - DBG_WARNING("parent_smb_fname() failed\n"); + status = SMB_VFS_PARENT_PATHNAME(handle->conn, + talloc_tos(), + fname, + &dname, + NULL); + if (!NT_STATUS_IS_OK(status)) { + DBG_WARNING("SMB_VFS_PARENT_PATHNAME() failed with %s\n", + nt_errstr(status)); /* return success, we did the mkdir */ return mkdir_res; } -- 2.47.3