summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:39:46 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:59 -0700
commit97d006ff7d442d718cea95cea4a95404c2da2d9b (patch)
treee7e935042ec3b71e0a71cbce2c16c40bc7fd0372 /source3/modules
parent3d05622c560d2b481c28fa834f3fa2fde288fcce (diff)
downloadsamba-97d006ff7d442d718cea95cea4a95404c2da2d9b.tar.gz
samba-97d006ff7d442d718cea95cea4a95404c2da2d9b.tar.bz2
samba-97d006ff7d442d718cea95cea4a95404c2da2d9b.zip
vfs: Convert non_posix_sys_acl_blob_get_file_helper to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/non_posix_acls.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/modules/non_posix_acls.c b/source3/modules/non_posix_acls.c
index 6c1dfbf359..b1c24205d1 100644
--- a/source3/modules/non_posix_acls.c
+++ b/source3/modules/non_posix_acls.c
@@ -30,13 +30,12 @@ int non_posix_sys_acl_blob_get_file_helper(vfs_handle_struct *handle,
int ret;
TALLOC_CTX *frame = talloc_stackframe();
struct xattr_sys_acl_hash_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;
}