diff options
author | Jeremy Allison <jra@samba.org> | 2016-08-18 13:17:49 -0700 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-08-28 18:12:10 +0200 |
commit | 87a1a1acb6f3c7bf702f61ed6aba3d097c7a0399 (patch) | |
tree | 1c6fe7fceb0f8a82e774ea04b1a3b532195087b1 | |
parent | f570cda95a5f2afc1de30dc6782e01832dac45d9 (diff) | |
download | samba-87a1a1acb6f3c7bf702f61ed6aba3d097c7a0399.tar.gz |
s3: libsmb: Plumb in additional_flags2 = FLAGS2_REPARSE_PATH to cli_qpathinfo_send()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12165
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
(cherry picked from commit 21a7bf428bb8ed5b5634b87896bf0aa6c095d7f6)
-rw-r--r-- | source3/libsmb/clifile.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index fc894f102be..22708b5b199 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -5552,6 +5552,7 @@ struct tevent_req *cli_qpathinfo_send(TALLOC_CTX *mem_ctx, { struct tevent_req *req, *subreq; struct cli_qpathinfo_state *state; + uint16_t additional_flags2 = 0; req = tevent_req_create(mem_ctx, &state, struct cli_qpathinfo_state); if (req == NULL) { @@ -5571,11 +5572,16 @@ struct tevent_req *cli_qpathinfo_send(TALLOC_CTX *mem_ctx, return tevent_req_post(req, ev); } + if (clistr_is_previous_version_path(fname) && + !INFO_LEVEL_IS_UNIX(level)) { + additional_flags2 = FLAGS2_REPARSE_PATH; + } + subreq = cli_trans_send( state, /* mem ctx. */ ev, /* event ctx. */ cli, /* cli_state. */ - 0, /* additional_flags2 */ + additional_flags2, /* additional_flags2 */ SMBtrans2, /* cmd. */ NULL, /* pipe name. */ -1, /* fid. */ |