diff options
author | Jeremy Allison <jra@samba.org> | 2013-08-14 14:37:11 -0700 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-08-15 09:07:07 +0200 |
commit | 75d2e18502ccb811c018535f3c5c7325bdf5e613 (patch) | |
tree | 70373e4ef4a33c6cb59f839f9ea4838e47e96081 /source3/libsmb | |
parent | ea267a7e4b4c413336b2bf54eb53ffc8d1524b44 (diff) | |
download | samba-75d2e18502ccb811c018535f3c5c7325bdf5e613.tar.gz samba-75d2e18502ccb811c018535f3c5c7325bdf5e613.tar.bz2 samba-75d2e18502ccb811c018535f3c5c7325bdf5e613.zip |
s3:libsmb: Plumb cli_smb2_getatr() inside cli_getatr().
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/clifile.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 4ac7313ad3..f67411856b 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -3538,11 +3538,21 @@ NTSTATUS cli_getatr(struct cli_state *cli, off_t *size, time_t *write_time) { - TALLOC_CTX *frame = talloc_stackframe(); + TALLOC_CTX *frame = NULL; struct tevent_context *ev = NULL; struct tevent_req *req = NULL; NTSTATUS status = NT_STATUS_OK; + if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) { + return cli_smb2_getatr(cli, + fname, + attr, + size, + write_time); + } + + frame = talloc_stackframe(); + if (smbXcli_conn_has_async_calls(cli->conn)) { /* * Can't use sync call while an async call is in flight |