[patch] net time set && net time system on FreeBSD box with samba-3.0.11

Simo Sorce idra at samba.org
Thu Mar 10 12:58:47 GMT 2005


On Thu, 2005-03-10 at 17:35 +0600, Pavel Rochnyack wrote:
> Hello Andrew,
> Thursday, March 10, 2005, 3:32:35 PM, you wrote:
> 
> AB> You miss my point.  Now you need to test for #if defined(__FreeBSD__) ||
> AB> defined(__OpenBSD__) etc.  That is why you need to either find a patch
> AB> that always works, or have configure tests that 'just work' when a new
> AB> platform is encountered.
> 
> Because of  "date" utility simplifity we have no possibility to test datetime format.
> So we can`t make configure tests to test format string without modifying
> system time, what can`t be good.
> It looks like we have BSD standart and standart for other platforms.
> So let`s decide to test only we have xBSD platform or no?
> I think it will be enough ?

If the +format switch is not present on all platforms, then the best
thing is probably to use settimeofday(2) and avoid calling date
completely.

Simo.

-- 
Simo Sorce    -  idra at samba.org
Samba Team    -  http://www.samba.org
Italian Site  -  http://samba.xsec.it


More information about the samba-technical mailing list