git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2bf613
)
s3: vfs: shadow_copy2: Re-use an existing variable already set to the right value...
author
Jeremy Allison
<jra@samba.org>
Tue, 16 Aug 2016 16:41:43 +0000
(09:41 -0700)
committer
Jeremy Allison
<jra@samba.org>
Tue, 16 Aug 2016 23:22:38 +0000
(
01:22
+0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12150
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/modules/vfs_shadow_copy2.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_shadow_copy2.c
b/source3/modules/vfs_shadow_copy2.c
index bda934ecfbf4d12396db5771a1755f07c6a8ba47..b1aae1e530165e567d89b342ce657c83eed2ed71 100644
(file)
--- a/
source3/modules/vfs_shadow_copy2.c
+++ b/
source3/modules/vfs_shadow_copy2.c
@@
-486,7
+486,8
@@
static bool shadow_copy2_strip_snapshot(TALLOC_CTX *mem_ctx,
* with a path prefix.
*/
if (pstripped != NULL) {
- stripped = talloc_strndup(mem_ctx, name, p - name);
+ stripped = talloc_strndup(mem_ctx, name,
+ len_before_gmt);
if (stripped == NULL) {
return false;
}