[1362] in NetBSD-Development
Re: token problems with NetBSD-AFS
daemon@ATHENA.MIT.EDU (Greg Hudson)
Sat Aug 3 00:08:15 1996
To: William O Ferry <WOFerry+@CMU.EDU>
Cc: netbsd-afs@MIT.EDU
In-Reply-To: Your message of "Fri, 02 Aug 1996 22:28:19 EDT."
<0m0fZ3e00iV_A8aKcO@andrew.cmu.edu>
Date: Sat, 03 Aug 1996 00:07:30 EDT
From: Greg Hudson <ghudson@MIT.EDU>
> Anyhow, when ktc_SetToken() is called, a *4GB* file is created, such
> as /tkt/p3. ka_GetAFSTicket() then starts writing to this file,
> which needless to say fills the HD before completing
This is almost certainly a bug in our AFS libraries.
What's probably happening here is an lseek() or ftruncate() call with
an offset argument being passed as a 32-bit number (and no prototype
to correct it). NetBSD uses 64-bit file offsets, so this could show
up as a huge offset in some cases.
A prime candidate seems to be the duplicated Kerberos library code in
auth/ktc.c. I've added a few off_t casts to that code, and am doing a
built now. I can stash the resulting libafs somewhere and tell you
where to pick it up.