summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 15:29:55 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:55 -0700
commit0221f8bb90d80589d65f48ac43ce0cb301ac509f (patch)
tree4f33eb336b2420cbf0952b3075d20d6df1888057 /source3
parent8de3c04de346c120ca5ac396008d71eae708071f (diff)
downloadsamba-0221f8bb90d80589d65f48ac43ce0cb301ac509f.tar.gz
samba-0221f8bb90d80589d65f48ac43ce0cb301ac509f.tar.bz2
samba-0221f8bb90d80589d65f48ac43ce0cb301ac509f.zip
vfs: Convert unlink_acl_tdb 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_acl_tdb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/modules/vfs_acl_tdb.c b/source3/modules/vfs_acl_tdb.c
index f68afd88be..80839e3362 100644
--- a/source3/modules/vfs_acl_tdb.c
+++ b/source3/modules/vfs_acl_tdb.c
@@ -242,12 +242,11 @@ static int unlink_acl_tdb(vfs_handle_struct *handle,
{
struct smb_filename *smb_fname_tmp = NULL;
struct db_context *db = acl_db;
- NTSTATUS status;
int ret = -1;
- status = copy_smb_filename(talloc_tos(), smb_fname, &smb_fname_tmp);
- if (!NT_STATUS_IS_OK(status)) {
- errno = map_errno_from_nt_status(status);
+ smb_fname_tmp = cp_smb_filename(talloc_tos(), smb_fname);
+ if (smb_fname_tmp == NULL) {
+ errno = ENOMEM;
goto out;
}