vfs: Convert non_posix_sys_acl_blob_get_file_helper to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Fri, 12 Apr 2013 09:39:46 +0000 (11:39 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:49:59 +0000 (14:49 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/non_posix_acls.c

index 6c1dfbf3598f219c5b34882564ba911a45a9275f..b1c24205d13f644560b4eaf4100fca4b36f9305e 100644 (file)
@@ -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;
        }