[patch] net time set && net time system on FreeBSD box with
samba-3.0.11
Simo Sorce
idra at samba.org
Thu Mar 10 08:41:19 GMT 2005
On Thu, 2005-03-10 at 14:10 +0600, Pavel Rochnyack wrote:
> Hello samba-technical,
>
> The attached diff fixes net time command execution on FreeBSD boxes.
>
> Description:
>
> I have FreeBSD 5.1 Box with Samba running. When I trying to run
> net time set command I have following:
>
> bash-2.05b# net time set
> date: illegal time format
> usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
> [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]
>
> As described in man pages, Linux boxes have /bin/date with [MMDDhhmm[[CC]YY][.ss]] date format,
> but in FreeBSD format string is [[[[[cc]yy]mm]dd]HH]MM[.ss]].
> So I writed small patch which fixes this problem.
I think the right patch is to not rely on the default date format, but
specify the format through the +format option.
Can you work out a patch on this line?
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