smbd: Convert posix_sys_acl_blob_get_file to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Mon, 15 Apr 2013 08:39:45 +0000 (10:39 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:50:00 +0000 (14:50 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/posix_acls.c

index ee8b4d351722074152b1b126fea1d949e6fd58fc..01d429f23590533d8366cb8422dde829ebe05acf 100644 (file)
@@ -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;
        }