Date: Tue, 27 Nov 2001 08:57:09 +0100 (MET) From: j@uriah.heep.sax.de (Joerg Wunsch) To: freebsd-current@freebsd.org Subject: Re: df -l broken Message-ID: <200111270757.fAR7v9308525@uriah.heep.sax.de> References: <200111252141.fAPLf1639599@trantor.xs4all.nl> <20011126000531.A280@nebula.noos.fr>
index | next in thread | previous in thread | raw e-mail
Maxime Henrion <mux@qualys.com> wrote:
> Could you please test the attached patch ? I did it in a hurry but
> it may fix the problem.
....
if (i > 0)
*(--strptr) = NULL;
free(listptr);
return (str);
df.c: 569 lines, 14158 characters
uriah # make
cc -O2 -pipe -I/usr/src/bin/df/../../sbin/mount -Wall -Wformat -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -c /usr/src/bin/df/df.c
cc -O2 -pipe -I/usr/src/bin/df/../../sbin/mount -Wall -Wformat -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -static -o df df.o vfslist.o -lm
uriah # make install
install -c -s -o root -g wheel -m 555 df /bin
install -c -o root -g wheel -m 444 df.1.gz /usr/share/man/man1
uriah # df -l
Segmentation fault (core dumped)
....
*(--strptr) = NULL;
free(listptr);
return (str);
}
~
df.c: 568 lines, 14145 characters
uriah # make
cc -O2 -pipe -I/usr/src/bin/df/../../sbin/mount -Wall -Wformat -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -c /usr/src/bin/df/df.c
cc -O2 -pipe -I/usr/src/bin/df/../../sbin/mount -Wall -Wformat -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -static -o df df.o vfslist.o -lm
uriah # make install
install -c -s -o root -g wheel -m 555 df /bin
install -c -o root -g wheel -m 444 df.1.gz /usr/share/man/man1
uriah # df -l
uriah #
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111270757.fAR7v9308525>
