Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/su fix the krb5 su to ordinary user case, from Mark ...



details:   https://anonhg.NetBSD.org/src/rev/7d9c3e11864f
branches:  trunk
changeset: 494747:7d9c3e11864f
user:      assar <assar%NetBSD.org@localhost>
date:      Thu Jul 13 08:37:10 2000 +0000

description:
fix the krb5 su to ordinary user case, from Mark Davies
<mark%MCS.VUW.AC.NZ@localhost>

diffstat:

 usr.bin/su/su.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f63d45b83772 -r 7d9c3e11864f usr.bin/su/su.c
--- a/usr.bin/su/su.c   Thu Jul 13 07:37:11 2000 +0000
+++ b/usr.bin/su/su.c   Thu Jul 13 08:37:10 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: su.c,v 1.41 2000/07/10 02:09:15 assar Exp $    */
+/*     $NetBSD: su.c,v 1.42 2000/07/13 08:37:10 assar Exp $    */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)su.c       8.3 (Berkeley) 4/2/94";*/
 #else
-__RCSID("$NetBSD: su.c,v 1.41 2000/07/10 02:09:15 assar Exp $");
+__RCSID("$NetBSD: su.c,v 1.42 2000/07/13 08:37:10 assar Exp $");
 #endif
 #endif /* not lint */
 
@@ -473,7 +473,7 @@
                                          NULL, username, "root", NULL);
        else
                ret = krb5_make_principal(context, &princ,
-                                         user, NULL);
+                                         NULL, user, NULL);
        if (ret)
                goto fail;
        if (!krb5_kuserok(context, princ, user) && !uid) {



Home | Main Index | Thread Index | Old Index