s3: smbd: Correctly canonicalize any incoming shadow copy path.
commite3816bb04a761202747a73f282e193cb294c41e1
authorJeremy Allison <jra@samba.org>
Thu, 12 Jan 2017 00:30:38 +0000 (11 16:30 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 15 Feb 2017 10:42:21 +0000 (15 11:42 +0100)
tree49abb42eeb11e01dfc884e51f63e1c86f34ac3c0
parentc808b732fbfcf88bb64a48978dd98345b99feabe
s3: smbd: Correctly canonicalize any incoming shadow copy path.

Converts to:

@GMT-token/path/last_component

from all incoming path types. Allows shadow_copy modules
to work when current directory is changed after removing
last component.

Ultimately when the VFS ABI is changed to add a timestamp
to struct smb_filename, this is where the parsing will be
done.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12531

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
(backported from commit 39678ed6af708fb6f2760bfb51051add11e3c498)
source3/smbd/filename.c