s3: vfs: shadow_copy2: Replace all uses of (p-name) with len_before_gmt.
authorJeremy Allison <jra@samba.org>
Wed, 17 Aug 2016 17:49:50 +0000 (10:49 -0700)
committerDavid Disseldorp <ddiss@samba.org>
Thu, 18 Aug 2016 00:51:15 +0000 (02:51 +0200)
commitabf18f42dc398f5f17088de87fd0e681fd44ebeb
tree26b8af56f4a01884205d64c1bbb2acfd5e9b8ecf
parent2fd20cfd8515ab8c047149fdcbf5471d8c58a0af
s3: vfs: shadow_copy2: Replace all uses of (p-name) with len_before_gmt.

p and name don't change, and we've already calculated this length.
Part of the effort to make the code inside vfs_snapper.c that does
the same thing more similar (we can't make these functions identical
due to the 'snapdir' use case).

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>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/modules/vfs_shadow_copy2.c