git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1638 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-05-02 14:55:22 +00:00
parent 5bd22f427a
commit 8c9816b622
2 changed files with 8 additions and 4 deletions

View File

@@ -199,8 +199,10 @@ siad_ses_authent(sia_collect_func_t *collect,
if(getpwnam_r(entity->name, &pw, pwbuf, sizeof(pwbuf), &pwd) != 0)
return SIADFAIL;
snprintf((char*)entity->mech[pkgind], sizeof(entity->mech[pkgind]),
"%s%d_%d",
TKT_ROOT, pwd->pw_uid, getpid());
"%s%u_%u",
TKT_ROOT,
(unsigned)pwd->pw_uid,
(unsigned)getpid());
krb_set_tkt_string((char*)entity->mech[pkgind]);
krb_get_lrealm(realm, 1);