diff options
author | Jeremy Allison <jra@samba.org> | 2013-08-07 16:11:59 -0700 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-08-15 09:07:06 +0200 |
commit | 0bbc0446210fa504f9834de948c4d066df752666 (patch) | |
tree | e3fa4b3dd96d370d4d861fc149b6f3f5cbe9b519 /source3/libsmb | |
parent | 85f60cc3d8f68ce5eb687cc6e367bb66bdef8b99 (diff) | |
download | samba-0bbc0446210fa504f9834de948c4d066df752666.tar.gz samba-0bbc0446210fa504f9834de948c4d066df752666.tar.bz2 samba-0bbc0446210fa504f9834de948c4d066df752666.zip |
s3:libsmb: Plumb cli_smb2_getattrE() inside cli_getattrE().
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 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 571e1cc68c..e3fb62d0a9 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -3379,11 +3379,23 @@ NTSTATUS cli_getattrE(struct cli_state *cli, time_t *access_time, 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_getattrE(cli, + fnum, + attr, + size, + change_time, + access_time, + 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 |