summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:18:10 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:58 -0700
commit58bb3ae99d0ccb469676117245b2ffff4abfa333 (patch)
tree28c334cce09303cda4f53d9f093781e68bd91d69 /source3
parent19e88da1dcbc553d443b4c224d186ccda09672b6 (diff)
downloadsamba-58bb3ae99d0ccb469676117245b2ffff4abfa333.tar.gz
samba-58bb3ae99d0ccb469676117245b2ffff4abfa333.tar.bz2
samba-58bb3ae99d0ccb469676117245b2ffff4abfa333.zip
vfs: Convert gpfsacl_emu_chmod to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_gpfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index f4db292b48..4cfbea3aff 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 */