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

Pavel Rochnyack rpv at muma.tusur.ru
Thu Mar 10 08:10:59 GMT 2005


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.

-- 
Best regards,
 Pavel                          mailto:rpv at muma.tusur.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: net_time.c.diff
Type: application/octet-stream
Size: 497 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20050310/1d2f5d6f/net_time.c.obj


More information about the samba-technical mailing list