1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3:libsmb: Plumb cli_smb2_qpathinfo2() inside cli_qpathinfo2().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Jeremy Allison 2013-08-07 16:45:05 -07:00 committed by Stefan Metzmacher
parent 73255d3ba9
commit f2f566b1cc

View File

@ -845,11 +845,25 @@ NTSTATUS cli_qpathinfo2(struct cli_state *cli, const char *fname,
off_t *size, uint16 *mode, off_t *size, uint16 *mode,
SMB_INO_T *ino) SMB_INO_T *ino)
{ {
TALLOC_CTX *frame = talloc_stackframe(); TALLOC_CTX *frame = NULL;
struct tevent_context *ev; struct tevent_context *ev;
struct tevent_req *req; struct tevent_req *req;
NTSTATUS status = NT_STATUS_NO_MEMORY; 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)) { if (smbXcli_conn_has_async_calls(cli->conn)) {
/* /*
* Can't use sync call while an async call is in flight * Can't use sync call while an async call is in flight