From owner-freebsd-current Sat Oct 26 00:52:10 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA06019 for current-outgoing; Sat, 26 Oct 1996 00:52:10 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA06005 for ; Sat, 26 Oct 1996 00:52:02 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA12251; Sat, 26 Oct 1996 09:51:54 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA02649; Sat, 26 Oct 1996 09:51:53 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.6/8.6.9) id JAA13167; Sat, 26 Oct 1996 09:44:59 +0200 (MET DST) From: J Wunsch Message-Id: <199610260744.JAA13167@uriah.heep.sax.de> Subject: Re: Bogus Output from lsvfs II To: freebsd-current@FreeBSD.org (FreeBSD-current users) Date: Sat, 26 Oct 1996 09:44:58 +0200 (MET DST) Cc: dmaddox@scsn.net Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199610252119.RAA00683@rhiannon.scsn.net> from "Donald J. Maddox" at "Oct 25, 96 05:19:58 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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. ;-)