mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
smbclient: use full_timespec_to_nt_time()
Needed to support dates corresponding to (time_t)0 and (time_t)-1. BUG: https://bugzilla.samba.org/show_bug.cgi?id=7771 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
02f18a3980
commit
2a82caf57e
@ -1,2 +0,0 @@
|
||||
^samba3.blackbox.timestamps.time=0\(fileserver\)
|
||||
^samba3.blackbox.timestamps.time=-1\(fileserver\)
|
@ -1812,16 +1812,16 @@ static int do_allinfo(const char *name)
|
||||
return false;
|
||||
}
|
||||
|
||||
tmp = unix_timespec_to_nt_time(b_time);
|
||||
tmp = full_timespec_to_nt_time(&b_time);
|
||||
d_printf("create_time: %s\n", nt_time_string(talloc_tos(), tmp));
|
||||
|
||||
tmp = unix_timespec_to_nt_time(a_time);
|
||||
tmp = full_timespec_to_nt_time(&a_time);
|
||||
d_printf("access_time: %s\n", nt_time_string(talloc_tos(), tmp));
|
||||
|
||||
tmp = unix_timespec_to_nt_time(m_time);
|
||||
tmp = full_timespec_to_nt_time(&m_time);
|
||||
d_printf("write_time: %s\n", nt_time_string(talloc_tos(), tmp));
|
||||
|
||||
tmp = unix_timespec_to_nt_time(c_time);
|
||||
tmp = full_timespec_to_nt_time(&c_time);
|
||||
d_printf("change_time: %s\n", nt_time_string(talloc_tos(), tmp));
|
||||
|
||||
d_printf("attributes: %s (%x)\n", attr_str(talloc_tos(), mode), mode);
|
||||
|
Loading…
Reference in New Issue
Block a user