Path: utzoo!attcan!uunet!husc6!yale!cmcl2!phri!marob!daveh From: daveh@marob.masa.com (Dave Hammond) Newsgroups: comp.unix.wizards Subject: Re: FINGER... Message-ID: <26A61CB1.670F@marob.masa.com> Date: 19 Jul 90 20:48:48 GMT References: <23917@adm.BRL.MIL> Reply-To: daveh@marob.masa.com (Dave Hammond) Organization: ESCC, New York City Lines: 19 In article <23917@adm.BRL.MIL> STUTROUTWINE%EKU.BITNET@pucc.princeton.edu writes: > > Curious problem.... we've a small bug with finger on our system.... it >seems that if a users userid is 8 digits then a simple finger command (that is >without specifying the userids... used like a "who" command) then finger cannot >find the users.... Finger does a strncpy() from the password structure info to an 8 char buffer, leaving no room for a terminating null -- therefore it can not find a match when doing a lookup for the fullname info. I fixed this in our version by extending the name buffer and explicitly null-terminating the entry. Hope this helps. -- Dave Hammond daveh@marob.masa.com uunet!masa.com!marob!daveh