Subject: `amd -r' dumps core ...
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: None <cagney@highland.oz.au>
List: current-users
Date: 05/11/1994 15:42:06
Hi,

Specifying the `-r' flag to amd gives a core dump.  The problem
is in:

		src/usr.sbin/amd/config/mtab_bsd.c

The code didn't zero terminate the list of mount table entries.  This
problem is fixed (at least) in `amd920824upl75'.  A patch is below:

*** mtab_bsd.c.dist	Wed May 11 15:04:37 1994
--- mtab_bsd.c	Wed May 11 15:26:28 1994
***************
*** 114,119 ****
--- 114,124 ----
  		mpp = &(*mpp)->mnext;
  	}
  
+ 	/*
+ 	 * Terminate the list
+ 	 */
+ 	*mpp = 0;
+ 
  	return mhp;
  }
  

			Andrew (cagney@highland.oz.au)

------------------------------------------------------------------------------