diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-12 11:22:23 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:58 -0700 |
commit | 441467c26621f245a7f71f4280e2c44afb30118f (patch) | |
tree | 46b7e5b382d9d15864114a7c6e00e4f1cbdc929d | |
parent | 63f3980a88e033e118160fc92f95f0bf9bd2fbb2 (diff) | |
download | samba-441467c26621f245a7f71f4280e2c44afb30118f.tar.gz samba-441467c26621f245a7f71f4280e2c44afb30118f.tar.bz2 samba-441467c26621f245a7f71f4280e2c44afb30118f.zip |
vfs: Convert fake_acls_sys_acl_delete_def_file to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-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; } |