From 63f3980a88e033e118160fc92f95f0bf9bd2fbb2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 11:19:26 +0200 Subject: [PATCH] vfs: Convert vfs_gpfs_chmod to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_gpfs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 4cfbea3aff7..674e101c583 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1183,10 +1183,12 @@ static int vfs_gpfs_chmod(vfs_handle_struct *handle, const char *path, mode_t mo { struct smb_filename *smb_fname_cpath; int rc; - NTSTATUS status; - status = create_synthetic_smb_fname( - talloc_tos(), path, NULL, NULL, &smb_fname_cpath); + smb_fname_cpath = synthetic_smb_fname(talloc_tos(), path, NULL, NULL); + if (smb_fname_cpath == NULL) { + errno = ENOMEM; + return -1; + } if (SMB_VFS_NEXT_STAT(handle, smb_fname_cpath) != 0) { return -1; -- 2.11.4.GIT