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

index 4da03deca7921ac552842d804de52be11810f750..d46c61f8503e4aca04cafe1be83773805d7941c3 100644 (file)
@@ -394,12 +394,10 @@ static int streams_xattr_open(vfs_handle_struct *handle,
        }
 
        /* Create an smb_filename with stream_name == NULL. */
-       status = create_synthetic_smb_fname(talloc_tos(),
-                                           smb_fname->base_name,
-                                           NULL, NULL,
-                                           &smb_fname_base);
-       if (!NT_STATUS_IS_OK(status)) {
-               errno = map_errno_from_nt_status(status);
+       smb_fname_base = synthetic_smb_fname(
+               talloc_tos(), smb_fname->base_name, NULL, NULL);
+       if (smb_fname_base == NULL) {
+               errno = ENOMEM;
                goto fail;
        }