summaryrefslogtreecommitdiff
path: root/usr.bin/who
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-05-25 07:19:07 +0000
committerSteve Price <steve@FreeBSD.org>1998-05-25 07:19:07 +0000
commitaf2bbadbe07432519a1fcb8cd12602f05cc9f4f1 (patch)
tree4d05142b222b4af9b97e2c44c51415219ccde9fe /usr.bin/who
parentc1a42f558348cd334d526970a83bc0b050ec6bbc (diff)
downloadsrc-test2-af2bbadbe07432519a1fcb8cd12602f05cc9f4f1.tar.gz
src-test2-af2bbadbe07432519a1fcb8cd12602f05cc9f4f1.zip
Notes
Diffstat (limited to 'usr.bin/who')
-rw-r--r--usr.bin/who/who.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c
index 90cde1a6a78d..10bd580d7f4c 100644
--- a/usr.bin/who/who.c
+++ b/usr.bin/who/who.c
@@ -45,7 +45,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: who.c,v 1.5 1997/08/26 11:14:57 charnier Exp $";
+ "$Id: who.c,v 1.6 1998/04/26 19:10:51 des Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -54,6 +54,7 @@ static const char rcsid[] =
#include <locale.h>
#include <pwd.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
@@ -73,6 +74,9 @@ main(argc, argv)
FILE *ufp, *file();
char *t;
+ if (getopt(argc, argv, "") != -1)
+ usage();
+
(void) setlocale(LC_TIME, "");
switch (argc) {