From 4bc23fada7ceabb4bc4e4a493c6bb8bd570304b3 Mon Sep 17 00:00:00 2001 From: olah Date: Fri, 15 Mar 1996 16:41:49 +0000 Subject: Allow the user to disable the use of T/TCP by setting the -T option. This option becomes useless when all TCP stacks are fixed out there. --- usr.bin/finger/finger.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'usr.bin/finger/finger.c') diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c index 578d164..657426f 100644 --- a/usr.bin/finger/finger.c +++ b/usr.bin/finger/finger.c @@ -83,7 +83,7 @@ static char sccsid[] = "@(#)finger.c 8.2 (Berkeley) 9/30/93"; DB *db; time_t now; -int entries, lflag, mflag, pplan, sflag, oflag; +int entries, lflag, mflag, pplan, sflag, oflag, Tflag; char tbuf[1024]; static void loginlist __P((void)); @@ -98,7 +98,7 @@ option(argc, argv) optind = 1; /* reset getopt */ - while ((ch = getopt(argc, argv, "lmpsho")) != EOF) + while ((ch = getopt(argc, argv, "lmpshoT")) != EOF) switch(ch) { case 'l': lflag = 1; /* long format */ @@ -118,10 +118,13 @@ option(argc, argv) case 'o': oflag = 1; /* office info */ break; + case 'T': + Tflag = 1; /* disable T/TCP */ + break; case '?': default: (void)fprintf(stderr, - "usage: finger [-lmpsho] [login ...]\n"); + "usage: finger [-lmpshoT] [login ...]\n"); exit(1); } -- cgit v1.1