K 10
svn:author
V 6
kondou
K 8
svn:date
V 27
1999-04-20T01:38:04.000000Z
K 7
svn:log
V 990
storage/cnfs/cnfs.c:
	- From: rmtodd@skywalker.ecn.ou.edu (Richard Todd)
	- When using SEQUENTIAL mode in cycbuff.conf with cnfs, and starting
	  innd after "dd if=/dev/zero"-ing the CNFS buffers, cnfs fails to set
	  the 'memb_next' (pointer to the next cycbuff to dump articles to)
	  correctly, causing later coredumps.  The problem is this: in
	  CNFS_setcurrent, if the cycbuffs are previously uninitialized, the
	  code near the top of CNFS_setcurrent treats the cycbuffs as if they
	  were just moved in from another metacycbuff (which is not too
	  unreasonable), and does not consider this as a possible candidate for
	  the 'current' cycbuff (which is also reasonable).  The problem is
	  that if all the cycbuffs are new, 'currentcycbuff' never gets set to
	  anything, so whatever stack garbage is there gets used in setting the
	  memb_next variable.  The following patch fixes this by arbitrarily
	  picking cycbuff 0 as 'current' if no suitable current cycbuff was
	  found.

END
