s/0/NULL/ for execl*'s last argument.
This commit is contained in:
parent
a4efc02595
commit
aa349aa646
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: login.c,v 1.91 2006/04/06 00:48:14 simonb Exp $ */
|
/* $NetBSD: login.c,v 1.92 2006/05/20 10:31:59 mrg Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
|
* Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
|
||||||
@ -40,7 +40,7 @@ __COPYRIGHT(
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
|
static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
|
||||||
#endif
|
#endif
|
||||||
__RCSID("$NetBSD: login.c,v 1.91 2006/04/06 00:48:14 simonb Exp $");
|
__RCSID("$NetBSD: login.c,v 1.92 2006/05/20 10:31:59 mrg Exp $");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -729,7 +729,7 @@ main(int argc, char *argv[])
|
|||||||
warn("fork");
|
warn("fork");
|
||||||
sleepexit(1);
|
sleepexit(1);
|
||||||
case 0:
|
case 0:
|
||||||
execl(_PATH_BINPASSWD, "passwd", 0);
|
execl(_PATH_BINPASSWD, "passwd", NULL);
|
||||||
_exit(1);
|
_exit(1);
|
||||||
default:
|
default:
|
||||||
if (wait(&status) == -1 ||
|
if (wait(&status) == -1 ||
|
||||||
@ -743,7 +743,7 @@ main(int argc, char *argv[])
|
|||||||
if (login_krb5_get_tickets)
|
if (login_krb5_get_tickets)
|
||||||
k5_write_creds();
|
k5_write_creds();
|
||||||
#endif
|
#endif
|
||||||
execlp(pwd->pw_shell, tbuf, 0);
|
execlp(pwd->pw_shell, tbuf, NULL);
|
||||||
err(1, "%s", pwd->pw_shell);
|
err(1, "%s", pwd->pw_shell);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user