From 33037d80d5f6bf551809c05abea75f0a7d2ddf17 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 11 Apr 2013 15:32:39 +0200 Subject: vfs: Convert shadow_copy2_unlink to cp_smb_filename Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_shadow_copy2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index 1cf8e37ba4..03b2e07508 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -710,7 +710,6 @@ static int shadow_copy2_unlink(vfs_handle_struct *handle, char *stripped; int ret, saved_errno; struct smb_filename *conv; - NTSTATUS status; if (!shadow_copy2_strip_snapshot(talloc_tos(), handle, smb_fname->base_name, @@ -720,8 +719,8 @@ static int shadow_copy2_unlink(vfs_handle_struct *handle, if (timestamp == 0) { return SMB_VFS_NEXT_UNLINK(handle, smb_fname); } - status = copy_smb_filename(talloc_tos(), smb_fname, &conv); - if (!NT_STATUS_IS_OK(status)) { + conv = cp_smb_filename(talloc_tos(), smb_fname); + if (conv == NULL) { errno = ENOMEM; return -1; } -- cgit