small radiusd performance tweak

John W. Temples (john@kuwait.net)
Thu, 23 May 1996 11:49:31 +0300 (GMT)

For all you radiusd hackers:

In the routine unix_pass() in radiusd.c, there's an unnecessary call to
getpwnam() if you're using shadow passwords. getpwnam() is called only
to check that the password field is "x", which it always should be.

getpwnam() is relatively expensive on a huge password file.

--
John W. Temples, III       ||       Providing the first public access Internet
Gulfnet Kuwait             ||            site in the Arabian Gulf region