From: Jeremy Allison Date: Wed, 26 May 2021 18:05:32 +0000 (-0700) Subject: s3: VFS: gpfs. parent_smb_fname() -> SMB_VFS_PARENT_PATHNAME(). X-Git-Tag: tevent-0.11.0~681 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb5749fa6b417c89cc8a150f00a79dbb46e23d42;p=thirdparty%2Fsamba.git s3: VFS: gpfs. parent_smb_fname() -> SMB_VFS_PARENT_PATHNAME(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index fa2fa81eec0..a05bb0f3c7a 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1721,18 +1721,19 @@ static int stat_with_capability(struct vfs_handle_struct *handle, { #if defined(HAVE_FSTATAT) int fd = -1; - bool ok; + NTSTATUS status; struct smb_filename *dir_name = NULL; struct smb_filename *rel_name = NULL; struct stat st; int ret = -1; - ok = parent_smb_fname(talloc_tos(), - smb_fname, - &dir_name, - &rel_name); - if (!ok) { - errno = ENOMEM; + status = SMB_VFS_PARENT_PATHNAME(handle->conn, + talloc_tos(), + smb_fname, + &dir_name, + &rel_name); + if (!NT_STATUS_IS_OK(status)) { + errno = map_errno_from_nt_status(status); return -1; }