vfs: Convert streams_xattr_streaminfo to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Fri, 12 Apr 2013 09:15:41 +0000 (11:15 +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 d46c61f8503e4aca04cafe1be83773805d7941c3..de67197c71ac0f206e09afd44669bc81332d7b1a 100644 (file)
@@ -788,10 +788,10 @@ static NTSTATUS streams_xattr_streaminfo(vfs_handle_struct *handle,
        }
        else {
                struct smb_filename *smb_fname = NULL;
-               status = create_synthetic_smb_fname(talloc_tos(), fname, NULL,
-                                                   NULL, &smb_fname);
-               if (!NT_STATUS_IS_OK(status)) {
-                       return status;
+               smb_fname = synthetic_smb_fname(talloc_tos(), fname, NULL,
+                                               NULL);
+               if (smb_fname == NULL) {
+                       return NT_STATUS_NO_MEMORY;
                }
                if (lp_posix_pathnames()) {
                        ret = SMB_VFS_LSTAT(handle->conn, smb_fname);