Subject: Pine problems - solved (?)
To: NetBSD list <amiga@NetBSD.org>
From: Jukka Marin <firstname.lastname@example.org>
Date: 12/23/1994 16:24:31
I compiled and installed Pine 3.91 and had lots of problems with it.
It turned out that Pine reads most files it needs to read using its own
read_file (in os.c) which used fstat() to get the size of the file being
read. Under NetBSD 1.0, the size field of the stat structure is a 64 bit
number, but Pine only read the highest 32 bits - which were always zero.
Then it proceeded to allocate only one byte of memory and read 0 bytes
from the file. No wonder that the .signature and config files didn't
I added a type cast (unsigned long) in front of all references to the
file size field in read_file() and after some quick tests, Pine appears
to work. I was even able to read news using Pine.
Just in case someone else is trying to make it work...
P.S. No, I'm NOT using Pine myself! :-)
| Mail: Jukka Marin | E-Mail: email@example.com |
| Metsurintie 17 B 8 | FAX/voice: +358 71 283 2793 |
| 70150 Kuopio | There's God above computers - |
| FINLAND | Love beyond the hate |
\ If a train station is where the train stops, what is a workstation? /