vfs: Convert alloc_get_client_smb_fname to cp_smb_filename
authorVolker Lendecke <vl@samba.org>
Thu, 11 Apr 2013 14:14:05 +0000 (16:14 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:49:56 +0000 (14:49 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_media_harmony.c

index 79b165c794f59803a468949522b8547a3c0f46f8..ce981e84cb1e45eb4c3b88b55ac4b9b2141ca04d 100644 (file)
@@ -492,12 +492,11 @@ static int alloc_get_client_smb_fname(struct vfs_handle_struct *handle,
        DEBUG(MH_INFO_DEBUG, ("Entering with smb_fname->base_name '%s'\n",
                              smb_fname->base_name));
 
-       copystatus = copy_smb_filename(ctx, smb_fname, clientFname);
-       if (!NT_STATUS_IS_OK(copystatus))
-       {
+       clientFname = cp_smb_filename(ctx, smb_fname);
+       if (clientFname == NULL) {
                DEBUG(MH_ERR_DEBUG, ("alloc_get_client_smb_fname "
                                        "NTERR\n"));
-               errno = map_errno_from_nt_status(copystatus);
+               errno = ENOMEM;
                status = -1;
                goto err;
        }