STUTROUTWINE%EKU.BITNET@pucc.princeton.edu (07/19/90)
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....
eg...
---------------
/usr2/troutwin> finger
Login Name TTY Idle When Office
covingto ???
troutwin ???
greenwel ???
---------------
(take my word on it... i got lucky with the userids all being 8 digits
on this example..)
upon further investigation... i discover why it can't...
finger seems to be looking further than it (obviously 2 extra bytes)
should......
eg.
---------------
/usr2/troutwin> finger -l
Login name: covingto31 In real life: ???
Login name: troutwin37 In real life: ???
Login name: greenwel21 In real life: ???
/usr2/troutwin>
---------------
if the userids are less then 8 digits... it will find them without
any problem.... only those whos id's are 8...
Any suggestions out there..... we're running SVR3.2.2 running on an
AT&T 3b2 model 1000...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Curt Troutwine STUTROUTWINE@EKU.bitnet MATACMBBS@EKU.bitnet
\\ // "The wall was too high... as you can see...
\\ /X\ // no matter how he tried... he could not break free...
\\// \\// * and the worms... ate into his brain..."
XX XX |ldcard.. -Pink Floyd, The Wall, "Hey you.."
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-daveh@marob.masa.com (Dave Hammond) (07/20/90)
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