diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-11 16:14:05 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:56 -0700 |
commit | fb7afce2d36bc0b13b4918675ba0a9360b1f5d02 (patch) | |
tree | 82f0fe41852f87a8cdc575f3bce5e1ca6bb46c6c /source3/modules | |
parent | e49718111e4b2586136d60bb312ef35e58b6e48c (diff) | |
download | samba-fb7afce2d36bc0b13b4918675ba0a9360b1f5d02.tar.gz samba-fb7afce2d36bc0b13b4918675ba0a9360b1f5d02.tar.bz2 samba-fb7afce2d36bc0b13b4918675ba0a9360b1f5d02.zip |
vfs: Convert alloc_get_client_smb_fname to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_media_harmony.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index 79b165c794..ce981e84cb 100644 --- a/source3/modules/vfs_media_harmony.c +++ b/source3/modules/vfs_media_harmony.c @@ -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; } |