diff options
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_fake_acls.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/modules/vfs_fake_acls.c b/source3/modules/vfs_fake_acls.c index 9954af4841..0e7ebb9f65 100644 --- a/source3/modules/vfs_fake_acls.c +++ b/source3/modules/vfs_fake_acls.c @@ -346,12 +346,12 @@ static int fake_acls_sys_acl_delete_def_file(vfs_handle_struct *handle, const ch int ret; const char *name = FAKE_ACL_DEFAULT_XATTR; TALLOC_CTX *frame = talloc_stackframe(); - struct smb_filename *smb_fname = NULL; - NTSTATUS status = create_synthetic_smb_fname_split(frame, path, NULL, - &smb_fname); - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); + struct smb_filename *smb_fname; + + smb_fname = synthetic_smb_fname_split(frame, path, NULL); + if (smb_fname == NULL) { TALLOC_FREE(frame); + errno = ENOMEM; return -1; } |