From 58bb3ae99d0ccb469676117245b2ffff4abfa333 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 11:18:10 +0200 Subject: [PATCH] vfs: Convert gpfsacl_emu_chmod to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_gpfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index f4db292b48b..4cfbea3aff7 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1163,10 +1163,10 @@ static int gpfsacl_emu_chmod(const char *path, mode_t mode) /* don't add complementary DENY ACEs here */ ZERO_STRUCT(fake_fsp); - status = create_synthetic_smb_fname(talloc_tos(), path, NULL, NULL, - &fake_fsp.fsp_name); - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); + fake_fsp.fsp_name = synthetic_smb_fname( + talloc_tos(), path, NULL, NULL); + if (fake_fsp.fsp_name == NULL) { + errno = ENOMEM; return -1; } /* put the acl */ -- 2.11.4.GIT