From 9b875f62448dda0ff2283d7a4729542ccf6335ab Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 11 Apr 2013 15:36:18 +0200 Subject: [PATCH] vfs: Convert streams_xattr_unlink to cp_smb_filename Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_streams_xattr.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index dd1135d77cc..87f8f000f07 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -553,10 +553,9 @@ static int streams_xattr_unlink(vfs_handle_struct *handle, if (is_ntfs_default_stream_smb_fname(smb_fname)) { struct smb_filename *smb_fname_base = NULL; - status = copy_smb_filename(talloc_tos(), smb_fname, - &smb_fname_base); - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); + smb_fname_base = cp_smb_filename(talloc_tos(), smb_fname); + if (smb_fname_base == NULL) { + errno = ENOMEM; return -1; } -- 2.11.4.GIT