One thing came to mind, the file test should probably be >200 bytes
since the program mmaps 200 bytes from that file. I could be wrong
though...
>
> > Kernel 2.0.29 with minimal modifications, libc 5.4.23.
>
> libc 5.4.17 here. I compiled the program with debugging, got a core dump,
> and gdb says the program segfaulted trying to access a bad memory location
> during the strncpy (buf, p, 100).
libc-5.4.22 here, oopses and hangs...
>
>
> ------------------------------------------------------------------
> Jon Lewis <jlewis@fdt.net> | Unsolicited commercial e-mail will
> Network Administrator | be proof-read for $199/hr.
> ________Finger jlewis@inorganic5.fdt.net for PGP public key_______
>
-- Johnny Stenback, programmer / University of Vaasa, Computer Centre E-Mail jst@uwasa.fi, Phone +358 50 5575 094