rpcclient: append a trailing slash to FSRVP request UNCs
commit400e4f0c79c2ff520d71f770ef5818f3647324fb
authorDavid Disseldorp <ddiss@samba.org>
Sat, 29 Mar 2014 01:18:18 +0000 (29 02:18 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 4 Apr 2014 19:03:17 +0000 (4 21:03 +0200)
tree34fa01ce081f725de3cbd2d04a699bd0b308e402
parentc9703c96deaf8b08ed6d10db94585f4be45935bb
rpcclient: append a trailing slash to FSRVP request UNCs

The Windows Server 2012 FSRVP server exhibits strange behaviour when
exposing hidden shadow copy shares. If the hidden share UNC in the
AddToShadowCopySet request includes a trailing backslash (e.g.
"\\server\share$\"), then the new shadow-copy share will also be hidden
(e.g. "\\server\share$@{ShadowCopy.ShadowCopyId}$").
However, if the UNC does not include a trailing backslash, which until
now was rpcclient's default behaviour, then the exposed shadow-copy
share is not hidden.

Thanks to the MS Open Specifications team for helping me track down this
one.

bug: https://bugzilla.samba.org/show_bug.cgi?id=10521

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit d9bc82d90d6c4425028e225cf470283dd3a98049)
source3/rpcclient/cmd_fss.c