summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-07 16:50:03 -0700
committerKarolin Seeger <kseeger@samba.org>2013-08-30 11:53:25 +0200
commit5ef4556a1a258ffd27b2b5da72b98fcf58356255 (patch)
tree34e8a57285b8b97b2bbd7902b57bf868c9ffa11b /source3/libsmb
parent919cb48c3526e56dffa373da53c34018911adcab (diff)
downloadsamba-5ef4556a1a258ffd27b2b5da72b98fcf58356255.tar.gz
s3:libsmb: Plumb cli_smb2_qpathinfo_alt_name() inside cli_qpathinfo_alt_name().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit de895bf228432f2a42bcdcadcf12ffd1be64022f)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clirap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index 7a480d63378..d6d2fae04d6 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -1326,6 +1326,12 @@ NTSTATUS cli_qpathinfo_alt_name(struct cli_state *cli, const char *fname, fstrin
size_t converted_size = 0;
NTSTATUS status;
+ if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
+ return cli_smb2_qpathinfo_alt_name(cli,
+ fname,
+ alt_name);
+ }
+
status = cli_qpathinfo(talloc_tos(), cli, fname,
SMB_QUERY_FILE_ALT_NAME_INFO,
4, CLI_BUFFER_SIZE, &rdata, &num_rdata);