summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-07 16:50:03 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:07 +0200
commitde895bf228432f2a42bcdcadcf12ffd1be64022f (patch)
treef6ccb773bfc998afa5c90594d27f68669597e02c
parentcba3ed0466b8598e28a44809778b99e97b1bf1a1 (diff)
downloadsamba-de895bf228432f2a42bcdcadcf12ffd1be64022f.tar.gz
samba-de895bf228432f2a42bcdcadcf12ffd1be64022f.tar.bz2
samba-de895bf228432f2a42bcdcadcf12ffd1be64022f.zip
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>
-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 7a480d6337..d6d2fae04d 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);