[patch] net time set && net time system on FreeBSD box with
samba-3.0.11
Andrew Bartlett
abartlet at samba.org
Thu Mar 10 08:15:55 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.
Is there a standard format that both expect? #ifdef __FreeBSD__ seems
like entirely the wrong approach - (for example) what does OpenBSD
expect?
At the very least, we would need a configure test.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Student Network Administrator, Hawker College http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20050310/f5d7f0a3/attachment.bin
More information about the samba-technical
mailing list