Only allow 'who' and 'who am i' as valid usages.

PR:		6294
Submitted by:	Ruslan Ermilov <ru@ucb.crimea.ua>
This commit is contained in:
Steve Price 1998-05-25 07:19:07 +00:00
parent c1a42f5583
commit af2bbadbe0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36360

View File

@ -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) {