diff options
Diffstat (limited to 'auth-krb4.c')
-rw-r--r-- | auth-krb4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-krb4.c b/auth-krb4.c index ae2b2a3d8..8715dc0d9 100644 --- a/auth-krb4.c +++ b/auth-krb4.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #include "ssh.h" | 9 | #include "ssh.h" |
10 | #include "servconf.h" | 10 | #include "servconf.h" |
11 | 11 | ||
12 | RCSID("$OpenBSD: auth-krb4.c,v 1.16 2000/08/02 17:27:04 provos Exp $"); | 12 | RCSID("$OpenBSD: auth-krb4.c,v 1.17 2000/08/28 03:50:54 deraadt Exp $"); |
13 | 13 | ||
14 | #ifdef KRB4 | 14 | #ifdef KRB4 |
15 | char *ticket = NULL; | 15 | char *ticket = NULL; |
@@ -154,7 +154,7 @@ krb4_init(uid_t uid) | |||
154 | if (lstat("/ticket", &st) != -1) | 154 | if (lstat("/ticket", &st) != -1) |
155 | tkt_root = "/ticket/"; | 155 | tkt_root = "/ticket/"; |
156 | #endif /* AFS */ | 156 | #endif /* AFS */ |
157 | snprintf(ticket, MAXPATHLEN, "%s%d_%d", tkt_root, uid, getpid()); | 157 | snprintf(ticket, MAXPATHLEN, "%s%u_%d", tkt_root, uid, getpid()); |
158 | (void) krb_set_tkt_string(ticket); | 158 | (void) krb_set_tkt_string(ticket); |
159 | } | 159 | } |
160 | /* Register ticket cleanup in case of fatal error. */ | 160 | /* Register ticket cleanup in case of fatal error. */ |