This must be set by a client to use shadow copy (@GMT) paths.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
if (req->flags2 & FLAGS2_DFS_PATHNAMES) {
ucf_flags |= UCF_DFS_PATHNAME;
}
+ if (req->flags2 & FLAGS2_REPARSE_PATH) {
+ ucf_flags |= UCF_GMT_PATHNAME;
+ }
}
return ucf_flags;
if (tevent_req_nomem(fname, req)) {
return tevent_req_post(req, ev);
}
+ /*
+ * Tell filename_create_ucf_flags() this
+ * is an @GMT path.
+ */
+ smb1req->flags2 |= FLAGS2_REPARSE_PATH;
}
if (qfid) {
#define UCF_POSIX_PATHNAMES 0x00000008
#define UCF_UNIX_NAME_LOOKUP 0x00000010
#define UCF_PREP_CREATEFILE 0x00000020
+/*
+ * Use the same bit as FLAGS2_REPARSE_PATH
+ * which means the same thing.
+ */
+#define UCF_GMT_PATHNAME 0x00000400
/*
* Use the same bit as FLAGS2_DFS_PATHNAMES
* which means the same thing.