summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_create.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-05-18 13:24:26 -0700
committerJeremy Allison <jra@samba.org>2017-05-22 18:41:16 +0200
commitaa72d09b3130ef61f1be5713b8f2c016ac5bc551 (patch)
tree9f245922e504e0fb91202e6bd2771edb101aec0d /source3/smbd/smb2_create.c
parent1c9183bb381fa60e2118f5f874435c3a0f93e22d (diff)
downloadsamba-aa72d09b3130ef61f1be5713b8f2c016ac5bc551.tar.gz
s3: smbd: Add UCF_GMT_PATHNAME, which represents FLAGS2_REPARSE_PATH.
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>
Diffstat (limited to 'source3/smbd/smb2_create.c')
-rw-r--r--source3/smbd/smb2_create.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index 5a371aeef84..81e081875bc 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -925,6 +925,11 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
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) {