Source-Changes-HG archive

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

[src/netbsd-3]: src/usr.bin/login Pull up revision 1.8 (requested by lukem in...



details:   https://anonhg.NetBSD.org/src/rev/c5fabdb12251
branches:  netbsd-3
changeset: 576514:c5fabdb12251
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Jul 09 22:42:12 2005 +0000

description:
Pull up revision 1.8 (requested by lukem in ticket #531):
Terminate variable argument list with NULL, not 0.

diffstat:

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

diffs (27 lines):

diff -r c49497ae0d5a -r c5fabdb12251 usr.bin/login/login_pam.c
--- a/usr.bin/login/login_pam.c Sat Jul 09 22:41:19 2005 +0000
+++ b/usr.bin/login/login_pam.c Sat Jul 09 22:42:12 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: login_pam.c,v 1.4.2.3 2005/07/09 22:41:19 tron Exp $       */
+/*     $NetBSD: login_pam.c,v 1.4.2.4 2005/07/09 22:42:12 tron Exp $       */
 
 /*-
  * Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)login.c    8.4 (Berkeley) 4/2/94";
 #endif
-__RCSID("$NetBSD: login_pam.c,v 1.4.2.3 2005/07/09 22:41:19 tron Exp $");
+__RCSID("$NetBSD: login_pam.c,v 1.4.2.4 2005/07/09 22:42:12 tron Exp $");
 #endif /* not lint */
 
 /*
@@ -679,7 +679,7 @@
        (void)strlcpy(tbuf + 1, (p = strrchr(pwd->pw_shell, '/')) ?
            p + 1 : pwd->pw_shell, sizeof(tbuf) - 1);
 
-       execlp(pwd->pw_shell, tbuf, 0);
+       execlp(pwd->pw_shell, tbuf, NULL);
        err(EXIT_FAILURE, "%s", pwd->pw_shell);
 }
 



Home | Main Index | Thread Index | Old Index