Source-Changes-HG archive

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

[src/trunk]: src/sbin/init fix typos that prevented us from cleaning utmpx. N...



details:   https://anonhg.NetBSD.org/src/rev/ea6063c99dc0
branches:  trunk
changeset: 534752:ea6063c99dc0
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Aug 02 14:03:22 2002 +0000

description:
fix typos that prevented us from cleaning utmpx. Noted by wiz

diffstat:

 sbin/init/Makefile |   4 ++--
 sbin/init/init.c   |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (57 lines):

diff -r 158e4847395d -r ea6063c99dc0 sbin/init/Makefile
--- a/sbin/init/Makefile        Fri Aug 02 12:45:23 2002 +0000
+++ b/sbin/init/Makefile        Fri Aug 02 14:03:22 2002 +0000
@@ -1,11 +1,11 @@
-#      $NetBSD: Makefile,v 1.28 2002/07/27 23:49:47 christos Exp $
+#      $NetBSD: Makefile,v 1.29 2002/08/02 14:03:22 christos Exp $
 #      @(#)Makefile    8.1 (Berkeley) 7/19/93
 
 PROG=  init
 MAN=   init.8
 DPADD= ${LIBUTIL}
 LDADD= -lutil
-CPPFLAGS+=     -DMFS_DEV_IF_NO_CONSOLE -DSUPPORT_UTMP -DSUPPORT_WTMPX
+CPPFLAGS+=     -DMFS_DEV_IF_NO_CONSOLE -DSUPPORT_UTMP -DSUPPORT_UTMPX
 
 .ifdef SMALLPROG
 CPPFLAGS+=     -DLETS_GET_SMALL
diff -r 158e4847395d -r ea6063c99dc0 sbin/init/init.c
--- a/sbin/init/init.c  Fri Aug 02 12:45:23 2002 +0000
+++ b/sbin/init/init.c  Fri Aug 02 14:03:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.50 2002/07/27 23:49:47 christos Exp $       */
+/*     $NetBSD: init.c,v 1.51 2002/08/02 14:03:22 christos Exp $       */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)init.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: init.c,v 1.50 2002/07/27 23:49:47 christos Exp $");
+__RCSID("$NetBSD: init.c,v 1.51 2002/08/02 14:03:22 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -475,7 +475,7 @@
 {
        char *line = sp->se_device + sizeof(_PATH_DEV) - 1;
 #ifdef SUPPORT_UTMPX
-       if (logoutx(line, status))
+       if (logoutx(line, status, DEAD_PROCESS))
                logwtmpx(line, "", "", status, DEAD_PROCESS);
 #endif
 #ifdef SUPPORT_UTMP
@@ -752,10 +752,10 @@
 
        runcom_mode = AUTOBOOT;         /* the default */
        /* NB: should send a message to the session logger to avoid blocking. */
-#ifdef SUPPORT_WTMPX
+#ifdef SUPPORT_UTMPX
        logwtmpx("~", "reboot", "", 0, INIT_PROCESS);
 #endif
-#ifdef SUPPORT_WTMP
+#ifdef SUPPORT_UTMP
        logwtmp("~", "reboot", "");
 #endif
        return (state_func_t) read_ttys;



Home | Main Index | Thread Index | Old Index