haynes@ucbarpa.Berkeley.EDU (Jim Haynes) (04/13/89)
On a MtXinu 4.3BSD + NFS system we tried putting the fortune program
and its library on a filesystem that is mounted read only. Doesn't
work, as the program wants to open the fortunes.dat file read/write.
Before I go digging through the code, does anybody know why and what
it is going to write?
haynes@ucscc.ucsc.edu haynes@ucscc.bitnet ...ucbvax!ucscc!haynes
"Any clod can have the facts, but having opinions is an Art."
Charles McCabe, San Francisco Chronicleflee@shire.cs.psu.edu (Felix Lee) (04/13/89)
"fortune" doesn't pick a random fortune to print. Strange but true! What it does is print the next fortune that fits your command-line options. The next fortune is determined by reading (and writing) a counter in the fortunes.dat header. The randomness is in the order of the string table. -- Felix Lee flee@shire.cs.psu.edu *!psuvax1!shire!flee