summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-07 16:45:05 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:07 +0200
commitf2f566b1cc8d55bd1cf93478b877a3e7f455855c (patch)
tree330ff6b7ad48817a1311877309cf390216cc7524 /source3/libsmb
parent73255d3ba912b3a112f9d766deae895f51e16cd9 (diff)
downloadsamba-f2f566b1cc8d55bd1cf93478b877a3e7f455855c.tar.gz
samba-f2f566b1cc8d55bd1cf93478b877a3e7f455855c.tar.bz2
samba-f2f566b1cc8d55bd1cf93478b877a3e7f455855c.zip
s3:libsmb: Plumb cli_smb2_qpathinfo2() inside cli_qpathinfo2().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clirap.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index 12a340c5c3..41608dd732 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -845,11 +845,25 @@ NTSTATUS cli_qpathinfo2(struct cli_state *cli, const char *fname,
off_t *size, uint16 *mode,
SMB_INO_T *ino)
{
- TALLOC_CTX *frame = talloc_stackframe();
+ TALLOC_CTX *frame = NULL;
struct tevent_context *ev;
struct tevent_req *req;
NTSTATUS status = NT_STATUS_NO_MEMORY;
+ if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
+ return cli_smb2_qpathinfo2(cli,
+ fname,
+ create_time,
+ access_time,
+ write_time,
+ change_time,
+ size,
+ mode,
+ ino);
+ }
+
+ frame = talloc_stackframe();
+
if (smbXcli_conn_has_async_calls(cli->conn)) {
/*
* Can't use sync call while an async call is in flight