summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/auth-krb4.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-28 03:50:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-28 03:50:55 +0000
commit73f6f1368316c6c85c8a506f8db5bc26ba8446dc (patch)
treec75e63187433d1e083c6a8cb9d0ef9398c14d558 /usr.bin/ssh/auth-krb4.c
parent46e0cd1637097cd7834953183d8b27235607402a (diff)
print uid/gid as unsigned
Diffstat (limited to 'usr.bin/ssh/auth-krb4.c')
-rw-r--r--usr.bin/ssh/auth-krb4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth-krb4.c b/usr.bin/ssh/auth-krb4.c
index ae2b2a3d892..8715dc0d978 100644
--- a/usr.bin/ssh/auth-krb4.c
+++ b/usr.bin/ssh/auth-krb4.c
@@ -9,7 +9,7 @@
#include "ssh.h"
#include "servconf.h"
-RCSID("$OpenBSD: auth-krb4.c,v 1.16 2000/08/02 17:27:04 provos Exp $");
+RCSID("$OpenBSD: auth-krb4.c,v 1.17 2000/08/28 03:50:54 deraadt Exp $");
#ifdef KRB4
char *ticket = NULL;
@@ -154,7 +154,7 @@ krb4_init(uid_t uid)
if (lstat("/ticket", &st) != -1)
tkt_root = "/ticket/";
#endif /* AFS */
- snprintf(ticket, MAXPATHLEN, "%s%d_%d", tkt_root, uid, getpid());
+ snprintf(ticket, MAXPATHLEN, "%s%u_%d", tkt_root, uid, getpid());
(void) krb_set_tkt_string(ticket);
}
/* Register ticket cleanup in case of fatal error. */