diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-13 20:43:10 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-13 21:53:07 +0200 |
commit | 7ba2bc35a3bb40260347cf6001aab1726a7cde6e (patch) | |
tree | 50fc5b95c0d64555e0ecafa14ca30aa6e9c4ffa7 /source3/libsmb/clifile.c | |
parent | d62f1e1e19965808faa148addc813f08eea3ccc6 (diff) | |
download | samba-7ba2bc35a3bb40260347cf6001aab1726a7cde6e.tar.gz samba-7ba2bc35a3bb40260347cf6001aab1726a7cde6e.tar.bz2 samba-7ba2bc35a3bb40260347cf6001aab1726a7cde6e.zip |
s3:libsmb: make use of cli_state_server_time_zone()
metze
Diffstat (limited to 'source3/libsmb/clifile.c')
-rw-r--r-- | source3/libsmb/clifile.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 2a30d2cda9..b418049d32 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -3190,7 +3190,7 @@ struct tevent_req *cli_getattrE_send(TALLOC_CTX *mem_ctx, return NULL; } - state->zone_offset = cli->serverzone; + state->zone_offset = cli_state_server_time_zone(cli); SSVAL(state->vwv+0,0,fnum); subreq = cli_smb_send(state, ev, cli, SMBgetattrE, additional_flags, @@ -3339,7 +3339,7 @@ struct tevent_req *cli_getatr_send(TALLOC_CTX *mem_ctx, return NULL; } - state->zone_offset = cli->serverzone; + state->zone_offset = cli_state_server_time_zone(cli); bytes = talloc_array(state, uint8_t, 1); if (tevent_req_nomem(bytes, req)) { @@ -3486,11 +3486,11 @@ struct tevent_req *cli_setattrE_send(TALLOC_CTX *mem_ctx, SSVAL(state->vwv+0, 0, fnum); push_dos_date2((uint8_t *)&state->vwv[1], 0, change_time, - cli->serverzone); + cli_state_server_time_zone(cli)); push_dos_date2((uint8_t *)&state->vwv[3], 0, access_time, - cli->serverzone); + cli_state_server_time_zone(cli)); push_dos_date2((uint8_t *)&state->vwv[5], 0, write_time, - cli->serverzone); + cli_state_server_time_zone(cli)); subreq = cli_smb_send(state, ev, cli, SMBsetattrE, additional_flags, 7, state->vwv, 0, NULL); @@ -3597,7 +3597,7 @@ struct tevent_req *cli_setatr_send(TALLOC_CTX *mem_ctx, } SSVAL(state->vwv+0, 0, attr); - push_dos_date3((uint8_t *)&state->vwv[1], 0, mtime, cli->serverzone); + push_dos_date3((uint8_t *)&state->vwv[1], 0, mtime, cli_state_server_time_zone(cli)); bytes = talloc_array(state, uint8_t, 1); if (tevent_req_nomem(bytes, req)) { |