diff options
author | Jeremy Allison <jra@samba.org> | 2018-04-06 13:35:05 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-05-05 01:39:40 +0200 |
commit | abb80ce44c41759306be3ff1cca6bea532bdf45f (patch) | |
tree | b99b99bbcacb4b05d906534448c4772e5fe2085f /examples/fuse | |
parent | 30e6b5999bf0be297de74dc991beeccfe4af6088 (diff) | |
download | samba-abb80ce44c41759306be3ff1cca6bea532bdf45f.tar.gz |
s3: client: Add btime_ts to struct finfo.
Fill it in when available, else return it as zero.
Based on a patch from Puran Chand <pchand@vmware.com>.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'examples/fuse')
-rw-r--r-- | examples/fuse/clifuse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/fuse/clifuse.c b/examples/fuse/clifuse.c index da9dd4d3e82..3c7e4982475 100644 --- a/examples/fuse/clifuse.c +++ b/examples/fuse/clifuse.c @@ -484,6 +484,7 @@ static NTSTATUS parse_finfo_id_both_directory_info(uint8_t *dir_data, return NT_STATUS_INFO_LENGTH_MISMATCH; } + finfo->btime_ts = interpret_long_date((const char *)dir_data + 8); finfo->atime_ts = interpret_long_date((const char *)dir_data + 16); finfo->mtime_ts = interpret_long_date((const char *)dir_data + 24); finfo->ctime_ts = interpret_long_date((const char *)dir_data + 32); |