*BSD News Article 47247


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!newsfeed.internetmci.com!news.sprintlink.net!ns1.win.net!ns1.win.net!not-for-mail
From: bugs@news.win.net (Mark Hittinger)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: long finger times
Date: 18 Jul 1995 22:33:22 -0400
Organization: Win.Net Communications, Inc.
Lines: 44
Message-ID: <3uhqti$nn5@ns1.win.net>
References: <3ufr4j$fij@fu-berlin.de>
NNTP-Posting-Host: ns1.win.net
X-Newsreader: NN version 6.5.0 #4 (NOV)

graichen@sirius.physik.fu-berlin.de (Thomas Graichen) writes:

>hello

>can anybody tell me why finger is so slow under FreeBSD:

>this is a p90

If you have a big password file the finger program does an "inexact"
search by reading the entire file.

Here is the patch I use below:

*** finger.org	Tue Jul 18 22:29:58 1995
--- finger.c	Tue Jul 18 22:31:32 1995
***************
*** 98,101 ****
  	optind = 1;		/* reset getopt */
  
! 	while ((ch = getopt(argc, argv, "lmpsho")) != EOF)
  		switch(ch) {
--- 98,102 ----
  	optind = 1;		/* reset getopt */
+ 	mflag = 1 ; /* Alter default for large password files */
  
! 	while ((ch = getopt(argc, argv, "lmnpsho")) != EOF)
  		switch(ch) {
***************
*** 107,108 ****
--- 108,112 ----
  			break;
+                 case 'n':
+ 			mflag = 0 ;             /* No exact match needed */
+ 			break ;
  		case 'p':


Regards,

Mark Hittinger
bugs@win.net
-- 
"This is going to cause more confusion than a mouse in a burlesque show." -
							Foghorn Leghorn.