From owner-freebsd-current Sun Nov 25 15: 5:42 2001 Delivered-To: freebsd-current@freebsd.org Received: from noos.fr (r178m112.cybercable.tm.fr [195.132.178.112]) by hub.freebsd.org (Postfix) with ESMTP id 4959537B417 for ; Sun, 25 Nov 2001 15:05:33 -0800 (PST) Received: (from mux@localhost) by noos.fr (8.11.6/8.11.4) id fAPN5VN07199; Mon, 26 Nov 2001 00:05:31 +0100 (CET) (envelope-from mux) Date: Mon, 26 Nov 2001 00:05:31 +0100 From: Maxime Henrion To: current@FreeBSD.org Cc: Paul van der Zwan Subject: Re: df -l broken Message-ID: <20011126000531.A280@nebula.noos.fr> References: <200111252141.fAPLf1639599@trantor.xs4all.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="eAbsdosE1cNLO4uF" Content-Disposition: inline In-Reply-To: <200111252141.fAPLf1639599@trantor.xs4all.nl> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --eAbsdosE1cNLO4uF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Paul van der Zwan wrote: > > I noticed the -l option of the df command is broken. It is supposed to > print df for local filesystems but on my system it prints nothing at all. > I had a quick look at the code , as far as I can tell it uses sysctl to > figure out the mounted filesystems but thinks all of them are non-local and > ignores them. > Using sysctl -a I could not find any entries which looked vaguely like > describing a mount.. > > Paul Could you please test the attached patch ? I did it in a hurry but it may fix the problem. Thanks, Maxime Henrion -- Don't be fooled by cheap finnish imitations ; BSD is the One True Code --eAbsdosE1cNLO4uF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="df.patch" Index: df.c =================================================================== RCS file: /home/ncvs/src/bin/df/df.c,v retrieving revision 1.32 diff -u -r1.32 df.c --- df.c 1 Aug 2001 02:09:09 -0000 1.32 +++ df.c 25 Nov 2001 22:57:49 -0000 @@ -561,7 +561,8 @@ *strptr = ','; free(listptr[i]); } - *(--strptr) = NULL; + if (i > 0) + *(--strptr) = NULL; free(listptr); return (str); --eAbsdosE1cNLO4uF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message