Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/login when creating a v4 ticket file, name it after ...
details: https://anonhg.NetBSD.org/src/rev/13ff4afe9654
branches: trunk
changeset: 522493:13ff4afe9654
user: joda <joda%NetBSD.org@localhost>
date: Wed Feb 20 08:17:17 2002 +0000
description:
when creating a v4 ticket file, name it after the users uid, not our
current (should finally fix bin/13040)
diffstat:
usr.bin/login/k5login.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 26f0e3f3884b -r 13ff4afe9654 usr.bin/login/k5login.c
--- a/usr.bin/login/k5login.c Wed Feb 20 08:12:43 2002 +0000
+++ b/usr.bin/login/k5login.c Wed Feb 20 08:17:17 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: k5login.c,v 1.21 2001/09/17 12:34:44 assar Exp $ */
+/* $NetBSD: k5login.c,v 1.22 2002/02/20 08:17:17 joda Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -55,7 +55,7 @@
#if 0
static char sccsid[] = "@(#)klogin.c 5.11 (Berkeley) 7/12/92";
#endif
-__RCSID("$NetBSD: k5login.c,v 1.21 2001/09/17 12:34:44 assar Exp $");
+__RCSID("$NetBSD: k5login.c,v 1.22 2002/02/20 08:17:17 joda Exp $");
#endif /* not lint */
#ifdef KERBEROS5
@@ -361,7 +361,7 @@
&cred, &c);
if(ret == 0) {
snprintf(krb4tkfile, sizeof(krb4tkfile),
- "%s%d",TKT_ROOT, getuid());
+ "%s%d",TKT_ROOT, pw->pw_uid);
krb_set_tkt_string(krb4tkfile);
tf_setup(&c, c.pname, c.pinst);
if (chown(krb4tkfile, pw->pw_uid,
Home |
Main Index |
Thread Index |
Old Index