summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-05-15 11:27:23 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-15 18:25:59 +0200
commit35b54ae5a9bf67373dc824fd2843411fee0aec72 (patch)
tree86751ee550e575f0c260eb8ba10298305e47b2e6 /source3
parentb488567a18653e4f95ed68964ee5846aac8c3ca6 (diff)
downloadsamba-35b54ae5a9bf67373dc824fd2843411fee0aec72.tar.gz
samba-35b54ae5a9bf67373dc824fd2843411fee0aec72.tar.bz2
samba-35b54ae5a9bf67373dc824fd2843411fee0aec72.zip
s3:libsmb: avoid interpret_long_date() in smb2cli_create
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smb2cli_create.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/libsmb/smb2cli_create.c b/source3/libsmb/smb2cli_create.c
index dc1a9eac87..d9800f5024 100644
--- a/source3/libsmb/smb2cli_create.c
+++ b/source3/libsmb/smb2cli_create.c
@@ -31,10 +31,10 @@ struct smb2cli_create_state {
uint8_t oplock_level;
uint32_t create_action;
- struct timespec creation_time;
- struct timespec last_access_time;
- struct timespec last_write_time;
- struct timespec change_time;
+ NTTIME creation_time;
+ NTTIME last_access_time;
+ NTTIME last_write_time;
+ NTTIME change_time;
uint64_t allocation_size;
uint64_t end_of_file;
uint32_t file_attributes;
@@ -183,10 +183,10 @@ static void smb2cli_create_done(struct tevent_req *subreq)
state->oplock_level = CVAL(body, 2);
state->create_action = IVAL(body, 4);
- state->creation_time = interpret_long_date((char *)body + 8);
- state->last_access_time = interpret_long_date((char *)body + 16);
- state->last_write_time = interpret_long_date((char *)body + 24);
- state->change_time = interpret_long_date((char *)body + 32);
+ state->creation_time = BVAL(body, 8);
+ state->last_access_time = BVAL(body, 16);
+ state->last_write_time = BVAL(body, 24);
+ state->change_time = BVAL(body, 32);
state->allocation_size = BVAL(body, 40);
state->end_of_file = BVAL(body, 48);
state->file_attributes = IVAL(body, 56);