summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rdate/rdate.8
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2013-04-19 19:14:46 +0000
committermillert <millert@openbsd.org>2013-04-19 19:14:46 +0000
commita57491f0b4d9d88cdc3d27e168bbb440f8ec9d91 (patch)
tree5c6540e630fe5e8925f0209684494b08c4a363da /usr.sbin/rdate/rdate.8
parentRename usbd_fill_*_task() to usb_fill_*_task(). (diff)
downloadwireguard-openbsd-a57491f0b4d9d88cdc3d27e168bbb440f8ec9d91.tar.xz
wireguard-openbsd-a57491f0b4d9d88cdc3d27e168bbb440f8ec9d91.zip
Make -n the default and add -o flag for the old RFC 868 time protocol
(which uses a 32-bit value for its wire protocol). OK deraadt@ ian@
Diffstat (limited to 'usr.sbin/rdate/rdate.8')
-rw-r--r--usr.sbin/rdate/rdate.821
1 files changed, 13 insertions, 8 deletions
diff --git a/usr.sbin/rdate/rdate.8 b/usr.sbin/rdate/rdate.8
index 371b08a0838..bf990d920a8 100644
--- a/usr.sbin/rdate/rdate.8
+++ b/usr.sbin/rdate/rdate.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rdate.8,v 1.35 2012/08/30 06:48:33 jmc Exp $
+.\" $OpenBSD: rdate.8,v 1.36 2013/04/19 19:14:46 millert Exp $
.\" $NetBSD: rdate.8,v 1.4 1996/04/08 20:55:17 jtc Exp $
.\"
.\" Copyright (c) 1994 Christos Zoulas
@@ -29,7 +29,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 30 2012 $
+.Dd $Mdocdate: April 19 2013 $
.Dt RDATE 8
.Os
.Sh NAME
@@ -37,19 +37,19 @@
.Nd set the system's date from a remote host
.Sh SYNOPSIS
.Nm rdate
-.Op Fl 46acnpsv
+.Op Fl 46acnopsv
.Ar host
.Sh DESCRIPTION
.Nm
displays and sets the local date and time from the
host name or address given as the argument.
-The time source may be an RFC 868 TCP protocol server,
+The time source may be an RFC 5905 protocol SNTP/NTP server
+or an RFC 868 TCP protocol server,
which is usually implemented as a built-in service of
-.Xr inetd 8 ,
-or an RFC 5905 protocol SNTP/NTP server.
+.Xr inetd 8 .
By default,
.Nm
-uses the RFC 868 TCP protocol.
+uses the RFC 5905 SNTP/NTP protocol.
.Pp
The options are as follows:
.Bl -tag -width Ds
@@ -72,6 +72,11 @@ This should be used only when synchronizing to a server
which does not correctly account for leap seconds.
.It Fl n
Use SNTP (RFC 5905) instead of the RFC 868 time protocol.
+This is the default.
+.It Fl o
+Use an RFC 868 TCP protocol server instead of SNTP.
+This protocol is obsolete as it is not capable of representing
+dates past January 19, 2038 03:14:07 GMT.
.It Fl p
Do not set, just print the remote time.
.It Fl s
@@ -92,7 +97,7 @@ symlink to
.Pa /usr/share/zoneinfo/right/Europe/Berlin
and issue the following command:
.Pp
-.D1 Li "# rdate -nv ptbtime1.ptb.de"
+.D1 Li "# rdate -v ptbtime1.ptb.de"
.Pp
The command of course assumes you have a working internet connection
and DNS set up to connect to the server at