s3: smbd: Correctly canonicalize any incoming shadow copy path.
authorJeremy Allison <jra@samba.org>
Thu, 12 Jan 2017 00:30:38 +0000 (16:30 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 30 Jan 2017 17:39:18 +0000 (18:39 +0100)
commit39678ed6af708fb6f2760bfb51051add11e3c498
treef724686db13a030250447a416b7047dd9d9abbd5
parent26ffc20cef841b33d3b7a55743e03d6ce9f58a05
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>
source3/smbd/filename.c