diff options
author | nik <nik@FreeBSD.org> | 1999-07-05 23:06:33 +0000 |
---|---|---|
committer | nik <nik@FreeBSD.org> | 1999-07-05 23:06:33 +0000 |
commit | ebc43c4f80bf19d60c03df54244e9f97ea409baa (patch) | |
tree | 88b56764b15747dded2389231a0ff52a0d94e621 /usr.sbin | |
parent | e4c5c21d9bf32258ea3b73bc05c22b927b3958f3 (diff) | |
download | FreeBSD-src-ebc43c4f80bf19d60c03df54244e9f97ea409baa.zip FreeBSD-src-ebc43c4f80bf19d60c03df54244e9f97ea409baa.tar.gz |
Make the source and the man page agree about the flags accepted by
ntpdate.
PR: docs/12344
Submitted by: Gerhard Gonter <gonter@whisky.wu-wien.ac.at>
Reviewed by: nik
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/xntpd/doc/ntpdate.8 | 11 | ||||
-rw-r--r-- | usr.sbin/xntpd/ntpdate/ntpdate.c | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/xntpd/doc/ntpdate.8 b/usr.sbin/xntpd/doc/ntpdate.8 index bf6832d..959c8a1 100644 --- a/usr.sbin/xntpd/doc/ntpdate.8 +++ b/usr.sbin/xntpd/doc/ntpdate.8 @@ -1,5 +1,5 @@ .\" -.\" $Id$ +.\" $Id: ntpdate.8,v 1.4 1998/02/19 08:05:35 charnier Exp $ .\" .Dd December 21, 1993 .Dt NTPDATE 8 @@ -9,7 +9,7 @@ .Nd set the date and time via NTP .Sh SYNOPSIS .Nm -.Op Fl bds +.Op Fl bdqsv .Op Fl o Ar version .Op Fl a Ar key# .Op Fl e Ar authdelay @@ -75,7 +75,12 @@ The flag may be used to determine what .Nm will do without it actually doing it. Information useful for general -debugging will also be printed. By default +debugging will also be printed. The +.Fl q +flag is used to perform a simple query without binding a priviledged +UPD port. The +.Fl v +enables a few diagnostic messages. By default .Nm claims to be an NTP version 3 implementation in its outgoing packets. As some older software will decline to respond to version 3 queries, the diff --git a/usr.sbin/xntpd/ntpdate/ntpdate.c b/usr.sbin/xntpd/ntpdate/ntpdate.c index bb5ede5..6088328 100644 --- a/usr.sbin/xntpd/ntpdate/ntpdate.c +++ b/usr.sbin/xntpd/ntpdate/ntpdate.c @@ -251,7 +251,7 @@ main(argc, argv) sys_maxservers = argc - ntp_optind; if (errflg || sys_maxservers == 0) { (void) fprintf(stderr, -"usage: %s [-bqs] [-a key#] [-k file] [-p samples] [-t timeo] server ...\n", +"usage: %s [-bdqsv] [-o version] [-a key#] [-e authdelay] [-k keyfile] [-p samples] [-t timeout] server ...\n", progname); exit(2); } |