On 16 May 2014 12:54, Todd C. Miller <todd.mil...@courtesan.com> wrote: > Currently, if you have a host netgroup with an unresolvable hostname, > the file system will not be exported to any of the netgroup members. > This is because we don't zero out grp before reusing it when a host > is unresolvable. > > - todd > > Index: sbin/mountd/mountd.c > =================================================================== > RCS file: /home/cvs/openbsd/src/sbin/mountd/mountd.c,v > retrieving revision 1.74 > diff -u -r1.74 mountd.c > --- sbin/mountd/mountd.c 22 Apr 2014 20:25:16 -0000 1.74 > +++ sbin/mountd/mountd.c 16 May 2014 16:52:09 -0000 > @@ -875,6 +875,8 @@ > if (has_host) { > grp->gr_next = get_grp(); > grp = grp->gr_next; > + } else { > + memset(grp, 0, sizeof(*grp)); > } > if (netgrp) { > if (hst == NULL) { >
Reading the code leads me to the same conclusion. ok krw@. .... Ken