[623] in NetBSD-Development

home help back first fref pref prev next nref lref last post

NetBSD klog.krb hosing ticketfile (bug in ktc.c)

daemon@ATHENA.MIT.EDU (Randall S. Winchester)
Mon Mar 6 09:22:00 1995

Resent-From: John Kohl <jtk@atria.com>
Resent-To: netbsd-afs@MIT.EDU
Date: Wed, 1 Mar 1995 16:26:48 -0500 (EST)
From: "Randall S. Winchester" <rsw@Glue.umd.edu>
To: jtkohl@MIT.EDU
Cc: warlord@MIT.EDU, jtkohl@MIT.EDU, basch@MIT.EDU
In-Reply-To: <199502252259.RAA01007@lola-granola.MIT.EDU>


klog.krb would just leave a big, but empty ticketfile, and
the way I was calling  ka_UserAuthenticateGeneral() was failing also.

Basically the second argument to lseek needs a cast;
This is in auth/ktc.c
1083c1083
<     (void) lseek(fd, 0L, 0);
---
>     (void) lseek(fd, (off_t)0L, 0);
1090c1090
<       start = lseek(fd, 0L, 1) - lastpos + curpos;
---
>       start = lseek(fd, (off_t)0L, 1) - lastpos + curpos;

I had to fix a similar thing to get kinit to work in lib/krb/tf_utils.c
560c558
<     (void) lseek(fd, 0L, 2);
---
>     (void) lseek(fd, (off_t)0L, 2);

Just incase you have not done this already. 
Randall


home help back first fref pref prev next nref lref last post