summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-12-12 09:16:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-12-12 09:16:04 +0000
commit661dcf73cb124e4842e8e58741345d4c6583cb84 (patch)
treecb954a2c3c484c081267eb64a865af442677dbde /usr.bin
parent4d2191da25c179cb41f39d1eac7882e3c71b8d6c (diff)
incorrect time specification; noted by sigh@kuzirabekon.econ.nagasaki-u.ac.jp
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/last/last.14
-rw-r--r--usr.bin/last/last.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/last/last.1 b/usr.bin/last/last.1
index 0c8c7718c61..d826411abe9 100644
--- a/usr.bin/last/last.1
+++ b/usr.bin/last/last.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: last.1,v 1.16 2000/11/09 17:52:16 aaron Exp $
+.\" $OpenBSD: last.1,v 1.17 2000/12/12 09:16:03 deraadt Exp $
.\" $NetBSD: last.1,v 1.3 1994/12/21 22:41:23 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -47,7 +47,7 @@
.Op Fl f Ar file
.Op Fl h Ar host
.Op Fl t Ar tty
-.Op Fl d Ar [[yy]yy[mm[dd[hh]]]]mm[.ss]
+.Op Fl d Ar [[CC]YY][MMDD]hhmm[.SS]
.Op Ar user ...
.Sh DESCRIPTION
The
diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c
index 6a9e210677f..664525f7cb8 100644
--- a/usr.bin/last/last.c
+++ b/usr.bin/last/last.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: last.c,v 1.11 1998/07/13 02:11:33 millert Exp $ */
+/* $OpenBSD: last.c,v 1.12 2000/12/12 09:16:03 deraadt Exp $ */
/* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)last.c 8.2 (Berkeley) 4/2/94";
#endif
-static char rcsid[] = "$OpenBSD: last.c,v 1.11 1998/07/13 02:11:33 millert Exp $";
+static char rcsid[] = "$OpenBSD: last.c,v 1.12 2000/12/12 09:16:03 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -162,7 +162,7 @@ main(argc, argv)
default:
(void)fprintf(stderr,
"usage: last [-#] [-cns] [-f file] [-T] [-t tty]"
- " [-h host] [-d [[yy]yy[mm[dd[hh]]]]mm[.ss]]"
+ " [-h host] [-d [[CC]YY][MMDD]hhmm[.SS]"
" [user ...]\n");
exit(1);
}
@@ -566,7 +566,7 @@ ttyconv(arg)
/*
* dateconv --
* Convert the snapshot time in command line given in the format
- * [[yy]yy][mmdd]hhmm[.ss]] to a time_t.
+ * [[CC]YY][MMDD]hhmm[.ss]] to a time_t.
* Derived from atime_arg1() in usr.bin/touch/touch.c
*/
time_t