Source-Changes-HG archive

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

[src/trunk]: src/etc/rc.d create a utmpx with the same permissions as utmp



details:   https://anonhg.NetBSD.org/src/rev/48d1a67f546a
branches:  trunk
changeset: 536444:48d1a67f546a
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Sep 16 02:23:31 2002 +0000

description:
create a utmpx with the same permissions as utmp
Solves pr 18282, although very differently.

diffstat:

 etc/rc.d/sysdb |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 99d0159c42fe -r 48d1a67f546a etc/rc.d/sysdb
--- a/etc/rc.d/sysdb    Mon Sep 16 02:13:16 2002 +0000
+++ b/etc/rc.d/sysdb    Mon Sep 16 02:23:31 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: sysdb,v 1.9 2002/03/22 04:34:00 thorpej Exp $
+# $NetBSD: sysdb,v 1.10 2002/09/16 02:23:31 perry Exp $
 #
 
 # PROVIDE: sysdb
@@ -24,11 +24,13 @@
        kvm_mkdb "${booted_kernel:-/netbsd}"
        dev_mkdb
 
-       #       Re-create /var/run/utmp, which is deleted by mountcritlocal
-       #       but can't be recreated by it because install and chown may
-       #       not be available then (possibly no /usr).
+       #       Re-create /var/run/utmp and /var/run/utmpx, which are
+       #       deleted by mountcritlocal but can't be recreated by it
+       #       because install and chown may not be available then
+       #       (possibly no /usr).
        #
        install -c -m 664 -g utmp /dev/null /var/run/utmp
+       install -c -m 664 -g utmp /dev/null /var/run/utmpx
 }
 
 load_rc_config $name



Home | Main Index | Thread Index | Old Index