Re: [netatalk-admins] asun 2.1.2-2 on FreeBSD 2.2.6 and MacOS 8.5.1


Subject: Re: [netatalk-admins] asun 2.1.2-2 on FreeBSD 2.2.6 and MacOS 8.5.1
From: Bob Smith, Hammett & Edison, Inc. (bsmith@h-e.com)
Date: Thu Jan 14 1999 - 00:23:40 EST


On Tue, Jan 12, 1999, 05:40:02 Brian Reid wrote:

>and the AppleDouble looks like this.
>
>6# od -b 'Growing Cubes'
>0000000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
>0000020 000 000 000 000 000 000 000 000 000 005 000 000 000 002 000 000

This AppleDouble file has a bad magic number. I don't recall off the top of
my head what it should be, but it shouldn't be all 0's! Let me take a stab in
the dark - did you upgrade from netatalk 1.4b2 to an asun version at some
point in the past? If so, I can make a pretty good guess about the problem.

The afpd code in 1.4b2 has a bug which trashes an AD file's magic number. It
never mattered in the past because the old code never _verified_ the number.
Even asun versions up through at least 2.0a18.2 did not verify the number,
although they did have the bug itself fixed. But asun has been making many
improvements to the AD code, so it would not surprise me to learn that asun-
2.1.2 now checks the AD file magic number, and returns some error if it is
bad. This would mean that any file created back when you were running 1.4b2
will cause problems with asun-2.1.2, however files created after upgrading to
any asun version will be OK. Does this explanation fit with what you are
experiencing?

Adrian can answer this for certain, of course; I may be way off. I can't
check it myself because I'm actually still running 1.4b2, for complicated
reasons I won't bore you with (I fixed the magic number bug, however, which is
why I know about it).

Hope this helps!

Bob Smith
Hammett & Edison, Inc.
bsmith@h-e.com



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:16:11 EST