Module Name:    src
Committed By:   riz
Date:           Mon May  7 15:59:37 UTC 2012

Modified Files:
        src/usr.bin/su [netbsd-6]: su.c

Log Message:
Pull up following revision(s) (requested by christos in ticket #213):
        usr.bin/su/su.c: revision 1.70
make this compile again.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.69.4.1 src/usr.bin/su/su.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/su/su.c
diff -u src/usr.bin/su/su.c:1.69 src/usr.bin/su/su.c:1.69.4.1
--- src/usr.bin/su/su.c:1.69	Wed Aug 31 16:24:58 2011
+++ src/usr.bin/su/su.c	Mon May  7 15:59:37 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: su.c,v 1.69 2011/08/31 16:24:58 plunky Exp $	*/
+/*	$NetBSD: su.c,v 1.69.4.1 2012/05/07 15:59:37 riz Exp $	*/
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988\
 #if 0
 static char sccsid[] = "@(#)su.c	8.3 (Berkeley) 4/2/94";*/
 #else
-__RCSID("$NetBSD: su.c,v 1.69 2011/08/31 16:24:58 plunky Exp $");
+__RCSID("$NetBSD: su.c,v 1.69.4.1 2012/05/07 15:59:37 riz Exp $");
 #endif
 #endif /* not lint */
 
@@ -462,7 +462,7 @@ kerberos5(char *username, const char *us
 		warnx("kerberos5: not in %s's ACL.", user);
 		goto fail;
 	}
-	ret = krb5_cc_gen_new(context, &krb5_mcc_ops, &ccache);
+	ret = krb5_cc_new_unique(context, krb5_mcc_ops.prefix, NULL, &ccache);
 	if (ret)
 		goto fail;
 	ret = krb5_verify_user_lrealm(context, princ, ccache, NULL, TRUE,
@@ -482,7 +482,7 @@ kerberos5(char *username, const char *us
 		}
 		goto fail;
 	}
-	ret = krb5_cc_gen_new(context, &krb5_fcc_ops, &ccache2);
+	ret = krb5_cc_new_unique(context, krb5_mcc_ops.prefix, NULL, &ccache2);
 	if (ret) {
 		krb5_cc_destroy(context, ccache);
 		goto fail;

Reply via email to