vfs_shadow_copy2: use struct smb_filename.twrp instead of @GMT string token
authorRalph Boehme <slow@samba.org>
Sat, 2 May 2020 10:10:38 +0000 (12:10 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 5 May 2020 19:18:42 +0000 (19:18 +0000)
commit3515ab6c3da93c55a5a1c366767498ba62208432
treec0fa7b2bf0486e8e56dec262934ce2403cedeca2
parent9fb491797e2a419457c6bba9ac96e6726e995eae
vfs_shadow_copy2: use struct smb_filename.twrp instead of @GMT string token

Removes the asserts which were only needed to prove patchset correctness.

If smb_fname->twrp is zero, the path won't contain an @GMT token, so we can skip
the stripping logic and directly goto out.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_shadow_copy2.c