format of fortune.dat files

Pierre Abbat phma at leaf.dragonflybsd.org
Thu Nov 13 13:53:56 PST 2014


I have two files of sayings which I use in my sig in email. For two days my 
laptop (which runs Linux) was in the shop getting its memory tested, so I used 
my DragonFly box to read and write email. (It did not work very well. Kmail 
spent hours fetching email headers from my IMAP server; if I clicked on a 
message while it was doing this, it wouldn't display the message until it 
finished reading the folder, if at all.) I rsynced lots of stuff, including the 
sig files. The dat files turned out to be garbage in DFly. I got the laptop back 
today, copied the dat files to /tmp, and rsynced everything back. Here's the 
Linux version of one of the dat files:

00000002 00000008 0000005a 00000018 00000000 25000000 00000000 0000003b
0000005d 000000a8 00000104 0000013c 00000156 0000017d 0000019f

Here's the DragonFly version of the same file:

00000001 00000000 00000008 00000000 0000005a 00000000 00000018 00000000
00000000 00000000 25000000 00000000 00000000 00000000 0000003b 00000000
0000005d 00000000 000000a8 00000000 00000104 00000000 0000013c 00000000
00000156 00000000 0000017d 00000000 0000019f 00000000

Both are 64-bit OSes. Why does DragonFly have the extra zeros, making the file 
twice as big?

Pierre
-- 
When a barnacle settles down, its brain disintegrates.
Já não percebe nada, já não percebe nada.





More information about the Users mailing list