*BSD News Article 2394


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!uunet!wupost!gumby!destroyer!ubc-cs!alberta!kakwa.ucs.ualberta.ca!access.usask.ca!regina!udevdiv!roe
From: roe@Unibase.SK.CA (Roe Peterson)
Subject: Bugfix for mountd
Message-ID: <1992Jul24.055136.9781@Unibase.SK.CA>
Keywords: mountd
Organization: Unibase Telecom Ltd.
Date: Fri, 24 Jul 1992 05:51:36 GMT
Lines: 16

Hi.

Congratulations and kudos to the Jolitz's for 386BSD 0.1.  Hell of a nice
job, and our contribution will be winging its' way toward them right quick.

Found a little bug in mountd:  If /etc/exports contained:

	/usr/src -root=0

And /usr was not a file system unto itself, mountd went into an infinite
loop and stayed there.

The fix:  in /usr/src/sbin/mountd/mountd.c, line 592 reads:
	while (*cp == '/' && cp > ep->ex_dirp)
and should read:
	while (*(cp-1) == '/' && cp > ep->ex_dirp)