Maxime Henrion <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to