diff options
Diffstat (limited to 'source3/modules/vfs_gpfs.c')
-rw-r--r-- | source3/modules/vfs_gpfs.c | 8 |
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 */ |