builddbm patch for NDBM in Merit 2.4 RADIUS

William Bulley (web@merit.edu)
Tue, 26 Sep 1995 10:49:42 -0400 (EDT)

Evan Champion <evanc@sentinel.synapse.net> has pointed out an error
in builddbm.c which is in the Merit RADIUS 2.4 release:

*** builddbm.c Fri Sep 22 12:31:08 1995
--- /home/evanc/radius-2.4/src/builddbm.c Tue Sep 26 10:20:33 1995
***************
*** 94,109 ****

radius_dir = ".";

! #ifdef USE_NDBM
! if ((db = dbm_open ("users", O_RDONLY, 0)) == 0)
! #else /* USE_NDBM */
if (dbminit ("users") != 0)
- #endif /* USE_NDBM */
{
fprintf (stderr, "%s: Couldn't init dbm\n",
progname);
exit (-1);
}

while (user_read (name, content) == 0)
{
--- 94,107 ----

radius_dir = ".";

! #ifdef USE_DBM
if (dbminit ("users") != 0)
{
fprintf (stderr, "%s: Couldn't init dbm\n",
progname);
exit (-1);
}
+ #endif /* USE_DBM */

while (user_read (name, content) == 0)
{

The BSDi paragraph in the Makefile also need the following change:

INSTALL = /usr/bin/install

Regards,

web...

-- 
William Bulley, N8NXN              Senior Systems Research Programmer
Merit Network Inc.                 Domain: web@merit.edu
4251 Plymouth Road                 MaBell: (313) 764-9993
Ann Arbor, Michigan  48105-2785    Fax:    (313) 747-3185