From owner-freebsd-bugs Fri Nov 30 7: 0: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4411C37B416 for ; Fri, 30 Nov 2001 07:00:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fAUF03h87939; Fri, 30 Nov 2001 07:00:03 -0800 (PST) (envelope-from gnats) Date: Fri, 30 Nov 2001 07:00:03 -0800 (PST) Message-Id: <200111301500.fAUF03h87939@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Alexey V. Neyman" Subject: Re: bin/32397: df -l doesn't work Reply-To: "Alexey V. Neyman" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/32397; it has been noted by GNATS. From: "Alexey V. Neyman" To: Ceri , FreeBSD-gnats-submit@freebsd.org Cc: Subject: Re: bin/32397: df -l doesn't work Date: Fri, 30 Nov 2001 17:56:14 +0300 Hi, there! Try the following: --- /usr/src/bin/df/df.c Tue Oct 30 16:29:03 2001 +++ /usr/src/bin/df/df.c Fri Nov 30 20:53:20 2001 @@ -552,7 +552,8 @@ } *str = 'n'; *(str+1) = 'o'; - for (i = 0,strptr=str+2; i < cnt; i++,strptr++) { + strptr=str+2+!cnt; + for (i = 0; i < cnt; i++,strptr++) { strncpy (strptr, listptr[i], 32); strptr+=strlen(listptr[i]); *strptr=','; Regards, Alexey. -- <-------------------------> ) May the Sun and Water ( Regards, Alexey V. Neyman ) always fall upon you! ( mailto:alex.neyman@auriga.ru <-------------------------> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message