From 2c733b2ffb72b972e2b176d3b32b1e5c6c1b3bad Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 11 Apr 2013 15:35:02 +0200 Subject: vfs: Convert xattr_tdb_unlink to cp_smb_filename Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_xattr_tdb.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index c0debed1f7..939be825c5 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -347,7 +347,6 @@ static int xattr_tdb_unlink(vfs_handle_struct *handle, struct smb_filename *smb_fname_tmp = NULL; struct file_id id; struct db_context *db; - NTSTATUS status; int ret = -1; bool remove_record = false; TALLOC_CTX *frame = talloc_stackframe(); @@ -358,10 +357,10 @@ static int xattr_tdb_unlink(vfs_handle_struct *handle, TALLOC_FREE(frame); return -1; }); - status = copy_smb_filename(frame, smb_fname, &smb_fname_tmp); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_tmp = cp_smb_filename(frame, smb_fname); + if (smb_fname_tmp == NULL) { TALLOC_FREE(frame); - errno = map_errno_from_nt_status(status); + errno = ENOMEM; return -1; } -- cgit