summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 10:39:45 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:00 -0700
commitaa523408b4ba20e70403f819981e4881bdfeaae5 (patch)
tree908e9a3973ee378a1fe549198ac621f6705e7e56 /source3/smbd
parent1dc29208f3b9bf7733bdfe19262ab533f813d9fb (diff)
downloadsamba-aa523408b4ba20e70403f819981e4881bdfeaae5.tar.gz
samba-aa523408b4ba20e70403f819981e4881bdfeaae5.tar.bz2
samba-aa523408b4ba20e70403f819981e4881bdfeaae5.zip
smbd: Convert posix_sys_acl_blob_get_file to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/posix_acls.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index ee8b4d3517..01d429f235 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -4739,13 +4739,12 @@ int posix_sys_acl_blob_get_file(vfs_handle_struct *handle,
int ret;
TALLOC_CTX *frame = talloc_stackframe();
struct smb_acl_wrapper acl_wrapper = {};
- struct smb_filename *smb_fname = NULL;
- NTSTATUS status = create_synthetic_smb_fname_split(frame, path_p,
- 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_p, NULL);
+ if (smb_fname == NULL) {
TALLOC_FREE(frame);
+ errno = ENOMEM;
return -1;
}