summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 15:36:18 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:55 -0700
commit9b875f62448dda0ff2283d7a4729542ccf6335ab (patch)
treed9a78591b387972b9951c41aeb563ea704a7ea60 /source3
parent2c733b2ffb72b972e2b176d3b32b1e5c6c1b3bad (diff)
downloadsamba-9b875f62448dda0ff2283d7a4729542ccf6335ab.tar.gz
samba-9b875f62448dda0ff2283d7a4729542ccf6335ab.tar.bz2
samba-9b875f62448dda0ff2283d7a4729542ccf6335ab.zip
vfs: Convert streams_xattr_unlink to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_streams_xattr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c
index dd1135d77c..87f8f000f0 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;
}