shadow_copy2: fix shadow_copy2_strip_snapshot() in the classical case
commit4693fb10bbeaf636c5eb98484ce30a13cf4cfb82
authorMichael Adam <obnox@samba.org>
Wed, 29 May 2013 15:16:23 +0000 (29 17:16 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Jan 2014 09:17:22 +0000 (13 10:17 +0100)
treec46a9bde7fa013d03a369737a6631ef1da5f530d
parentcbebc8f9454d46394d9d1ea1f1193dadb560f5f7
shadow_copy2: fix shadow_copy2_strip_snapshot() in the classical case

I.e., fix detection of already converted names.

This is done by using the shadow_copy2_snapshot_path() function
and comparing if the input string starts with that.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 4b8d9c65f45db426716763629f1e22b0eb859a99)
source3/modules/vfs_shadow_copy2.c