more roken.h

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1637 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-05-02 14:44:09 +00:00
parent 91a09efb29
commit 5bd22f427a
6 changed files with 9 additions and 2 deletions

View File

@@ -307,7 +307,10 @@ kerberos4_is(Authenticator *ap, unsigned char *data, int cnt)
struct passwd *pw = getpwnam(UserNameRequested);
if(pw){
snprintf(ts, sizeof(ts), "%s%u", TKT_ROOT, pw->pw_uid);
snprintf(ts, sizeof(ts),
"%s%u",
TKT_ROOT,
(unsigned)pw->pw_uid);
setenv("KRBTKFILE", ts, 1);
}
Data(ap, KRB_ACCEPT, NULL, 0);