Samba & Daylight savings time (was Re: Linux smbfs

Luke Kenneth Casson Leighton lkcl at cb1.com
Thu Aug 14 13:28:16 GMT 1997



> >Unless something has changed in the 1.9.17 series, there is a samba issue
> >related to DST. Samba calculates a time offset when it starts up, then
> >uses this unchanged forever. If you are starting "smbd" from inetd, this
> >is usually good enough. If however you run smbd as a daemon, the time
> >offset will become wrong on the transitions to and from daylight savings
> >time, resulting in a one hour disrepency in time until smbd is restarted.
> 
> I still have to look at the code and maybe Luke can answer this one even

uh?

> faster, but I am operating under the assumption that all Unix applications
> get the time from the system calls ... always! With SNTP the time is
> corrected at the system clock, way before any application can get to it.
> Samba should not be keeping it's own time offset. 

yes it should.  on some unixes, calculating the DST time offset is so 
utterly expensive that we had to put in a DST offset binary search 
algorithm, plus cacheing.  i don't pretend to understand the details of 
this: it was added... back in 1.9.14 or 15 by andrew, at lesat two years ago.

luke


More information about the samba mailing list