[PATCH] Fix the smblcient utimes test in Europe

Andrew Bartlett abartlet at samba.org
Tue Dec 5 00:11:00 UTC 2017


On Thu, 2017-10-19 at 18:05 +0200, Andreas Schneider via samba-
technical wrote:
> Hi,
> 
> some of us life in a different timezone!
> 
> The attched patch fixes the test.
> 
> 
> Please review and push if OK.

G'Day Andreas and Jeremy,

Some of us live in New Zealand as well.  Could one of you please rework
to test to set a common timezone?

If I run it locally, I get:

UNEXPECTED(failure): samba3.blackbox.smbclient_s3.NT1.crypt
(nt4_dc).utimes(nt4_dc)
REASON: Exception: Exception: CLI_FORCE_INTERACTIVE=yes
/data/samba/git/samba7/bin/smbclient -Uabartlet%localntdc2pass
//LOCALNT4DC2/tmp -I 127.0.0.3 --
configfile=/data/samba/git/samba7/st/client/client.conf -mNT1 -e
Try "help" to get a list of possible commands.
smb: \> del utimes_test
NT_STATUS_NO_SUCH_FILE listing \utimes_test
smb: \> put  /data/samba/git/samba7/bin/smbclient utimes_test
putting file /data/samba/git/samba7/bin/smbclient as \utimes_test
(29861.4 kb/s) (average 29861.7 kb/s)
smb: \> allinfo utimes_test
altname: US5MWC~R
create_time:    Tue Dec  5 13:02:29 2017 NZDT
access_time:    Tue Dec  5 13:02:29 2017 NZDT
write_time:     Tue Dec  5 13:02:29 2017 NZDT
change_time:    Tue Dec  5 13:02:29 2017 NZDT
attributes: A (20)
stream: [::$DATA], 305784 bytes
smb: \> utimes utimes_test -1 17:01:01-05:10:20 -1 -1
smb: \> allinfo utimes_test
altname: US5MWC~R
create_time:    Tue Dec  5 13:02:29 2017 NZDT
access_time:    Sun Jan  1 06:10:20 2017 NZDT
write_time:     Tue Dec  5 13:02:29 2017 NZDT
change_time:    Tue Dec  5 13:02:29 2017 NZDT
attributes: A (20)
stream: [::$DATA], 305784 bytes
smb: \> del utimes_test
smb: \> quit

failed - should get access_time:    Sun Jan  1 05:10:20 [AM] 2017
envlog: SMBD LOG of: LOCALNT4DC2


(I didn't notice until now as our cloud boxen use GMT and we do almost
all our testing on those). 

Thanks,

Andrew Bartlett

-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba







More information about the samba-technical mailing list