smbd: Fix snapshot query on shares with DFS enabled
authorChristof Schmitt <cs@samba.org>
Fri, 12 Aug 2016 21:59:07 +0000 (14:59 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 13 Aug 2016 03:44:38 +0000 (05:44 +0200)
commitf1b42ec778e08875e076df7fdf67dd69bf9b2757
treef12192fd420dd59436bd9adfd4bc590b9e7efe17
parentb6931d5edc381d64ba0fbcd85538cd65e90a2560
smbd: Fix snapshot query on shares with DFS enabled

When DFS is enabled (host msdfs = yes and msdfs root = yes), then SMB
clients send create requests in the format \hostname\service\path.
Putting the GMT tag as first element breaks the DFS parsing and results
in OBJECT_NOT_FOUND for snapshotted files.  Fix this by appending the
GMT tag to the end of the path.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Aug 13 05:44:39 CEST 2016 on sn-devel-144
source3/smbd/smb2_create.c