Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 1996 09:44:58 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-current@FreeBSD.org (FreeBSD-current users)
Cc:        dmaddox@scsn.net
Subject:   Re: Bogus Output from lsvfs II
Message-ID:  <199610260744.JAA13167@uriah.heep.sax.de>
In-Reply-To: <199610252119.RAA00683@rhiannon.scsn.net> from "Donald J. Maddox" at "Oct 25, 96 05:19:58 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
As Donald J. Maddox wrote:

>     If I remove this, lsvfs behaves correctly.  Maybe a little bug
> in getvfsent() when memory is not cleared?


struct vfsconf *
getvfsent(void)
{
	if(!_vfslist && !initvfs()) {
		return 0;
	}

	do {
		if(_vfs_index > _vfslistlen) {
		             ^^^
			return 0;
		}

		_vfsconf = _vfslist[_vfs_index++];
	} while(!_vfsconf.vfc_vfsops);

I think ^^^ must be ``>='' actually.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610260744.JAA13167>