summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 15:33:44 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:55 -0700
commite0e5953494e08849e59b570c77c286a08d7d15bd (patch)
tree5841c2cf530d1ccfc2a2f2be6b692fb18abda399 /source3/modules
parent33037d80d5f6bf551809c05abea75f0a7d2ddf17 (diff)
downloadsamba-e0e5953494e08849e59b570c77c286a08d7d15bd.tar.gz
samba-e0e5953494e08849e59b570c77c286a08d7d15bd.tar.bz2
samba-e0e5953494e08849e59b570c77c286a08d7d15bd.zip
vfs: Convert shadow_copy2_ntimes to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_shadow_copy2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index 03b2e07508..60f9628600 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -826,7 +826,6 @@ static int shadow_copy2_ntimes(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,
@@ -836,8 +835,8 @@ static int shadow_copy2_ntimes(vfs_handle_struct *handle,
if (timestamp == 0) {
return SMB_VFS_NEXT_NTIMES(handle, smb_fname, ft);
}
- 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;
}