Date: Mon, 26 Nov 2001 00:05:31 +0100 From: Maxime Henrion <mux@qualys.com> To: current@FreeBSD.org Cc: Paul van der Zwan <paulz@trantor.xs4all.nl> Subject: Re: df -l broken Message-ID: <20011126000531.A280@nebula.noos.fr> In-Reply-To: <200111252141.fAPLf1639599@trantor.xs4all.nl> References: <200111252141.fAPLf1639599@trantor.xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011126000531.A280>