]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: shadow_copy2: Change a parameter name.
authorJeremy Allison <jra@samba.org>
Fri, 20 Jan 2017 19:56:21 +0000 (11:56 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 15 Feb 2017 10:42:22 +0000 (11:42 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12531

Allows easy substitution later.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
(backported from commit 2887465108aef5e2e7c64417437ecb86c7460e16)

source3/modules/vfs_shadow_copy2.c

index 111ea0348b32a351b3bb59dc871561e70662a8fa..53d3e74c5a058a1ce89fe25ace6472fb84c2f588 100644 (file)
@@ -226,7 +226,7 @@ static char *shadow_copy2_snapshot_path(TALLOC_CTX *mem_ctx,
  */
 static bool shadow_copy2_strip_snapshot_internal(TALLOC_CTX *mem_ctx,
                                        struct vfs_handle_struct *handle,
-                                       const char *name,
+                                       const char *orig_name,
                                        time_t *ptimestamp,
                                        char **pstripped,
                                        char **psnappath)
@@ -241,6 +241,7 @@ static bool shadow_copy2_strip_snapshot_internal(TALLOC_CTX *mem_ctx,
        const char *snapdir;
        ssize_t snapdirlen;
        ptrdiff_t len_before_gmt;
+       const char *name = orig_name;
 
        SMB_VFS_HANDLE_GET_DATA(handle, config, struct shadow_copy2_config,
                                return false);