[PATCH] [FreeBSD 11] Different order of date(1) parameters

Timur I. Bakeyev timur at com.bat.ru
Sun Jun 7 12:55:28 GMT 2009


This is an old long lasting patch, that hangs in the FreeBSD Samba ports
for ages. In certain cases 'net time' calls external date(1) to set time
of the Samba box. The trick is that order and meaning of parameters of
date(1) is different in FreeBSD(and, possibly, other BSDs) and Linux.

So, here is a dirty patch that addresses that difference. Yes, proper
configure detection would be better, but it maybe not easy to run
such a test without affecting system time(and, also, some systems, like
BSDi at least, prohibit changing time even for root).

With regards,
Timur Bakeyev.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-source3__utils__net_time.c
Type: text/x-csrc
Size: 528 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090607/4d3114f5/patch-source3__utils__net_time.bin


More information about the samba-technical mailing list