]> granicus.if.org Git - sudo/commitdiff
now use user global var
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Jul 1994 15:49:56 +0000 (15:49 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Jul 1994 15:49:56 +0000 (15:49 +0000)
check.c

diff --git a/check.c b/check.c
index 2f5f19cda54813c17a7fdbd4deb8abbe28ce6df1..0bff5ed30663f5f980aee16dbcef8391d6587a05 100644 (file)
--- a/check.c
+++ b/check.c
@@ -233,7 +233,6 @@ static void check_passwd()
     int code;
     long password_expires = -1;
     char *reason;
-    char username[20];
 #endif /* HAVE_AFS */
 #ifdef __svr4__
     struct spwd *spw_ent;
@@ -314,9 +313,8 @@ static void check_passwd()
            return;             /* if the passwd is correct return() */
 #endif /* __convex__ && HAVE_C2_SECURITY */
 #ifdef HAVE_AFS
-       strcpy(username, IDtouser(uid));
        code = ka_UserAuthenticateGeneral(KA_USERAUTH_VERSION+KA_USERAUTH_DOSETPAG,
-                                          username,
+                                          user,
                                           (char *) 0, 
                                           (char *) 0,
                                           pass,