Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/login last commit before I nuke the old code.
details: https://anonhg.NetBSD.org/src/rev/585bfce9716e
branches: trunk
changeset: 778991:585bfce9716e
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 24 16:51:19 2012 +0000
description:
last commit before I nuke the old code.
diffstat:
usr.bin/login/k5login.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r d945d11b3e13 -r 585bfce9716e usr.bin/login/k5login.c
--- a/usr.bin/login/k5login.c Tue Apr 24 16:12:44 2012 +0000
+++ b/usr.bin/login/k5login.c Tue Apr 24 16:51:19 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: k5login.c,v 1.31 2012/04/24 16:12:44 christos Exp $ */
+/* $NetBSD: k5login.c,v 1.32 2012/04/24 16:51:19 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -51,7 +51,7 @@
#if 0
static char sccsid[] = "@(#)klogin.c 5.11 (Berkeley) 7/12/92";
#endif
-__RCSID("$NetBSD: k5login.c,v 1.31 2012/04/24 16:12:44 christos Exp $");
+__RCSID("$NetBSD: k5login.c,v 1.32 2012/04/24 16:51:19 christos Exp $");
#endif /* not lint */
#ifdef KERBEROS5
@@ -399,11 +399,11 @@
return (1);
}
-#if 1
+ memset(&my_creds, 0, sizeof(my_creds));
+#if 0
krb5_principal server;
krb5_timestamp now;
long lifetime = KRB5_DEFAULT_LIFE;
- memset(&my_creds, 0, sizeof(my_creds));
my_creds.client = me;
@@ -457,6 +457,8 @@
NULL, NULL, 0, NULL, opt);
krb5_get_init_creds_opt_free(kcontext, opt);
+ if (kerror == 0)
+ kerror = krb5_cc_store_cred(kcontext, ccache, &my_creds);
#endif
if (chown(&tkt_location[5], pw->pw_uid, pw->pw_gid) < 0)
Home |
Main Index |
Thread Index |
Old Index