Download raw body.
/var/account/acct in etc tgz
Hi,
After a fresh install empty log files exist, but /var/account/acct
is missing. If accounting=YES is set, it is created at reboot. To
start accton on a running system, you need an additional touch.
I think it is more convenient if it exists from beginning.
Note that I kept it optional in /etc/mtree/special to avoid warnings
after upgrade.
ok?
bluhm
Index: etc/Makefile
===================================================================
RCS file: /data/mirror/openbsd/cvs/src/etc/Makefile,v
diff -u -p -r1.487 Makefile
--- etc/Makefile 13 Dec 2023 11:34:56 -0000 1.487
+++ etc/Makefile 21 Feb 2024 19:56:37 -0000
@@ -175,6 +175,8 @@ distribution-etc-root-var: distrib-dirs
chown -h root:wheel ${DESTDIR}/etc/localtime
ln -fs /usr/sbin/rmt ${DESTDIR}/etc/rmt
chown -h root:wheel ${DESTDIR}/etc/rmt
+ ${INSTALL} -c -o root -g wheel -m 644 /dev/null \
+ ${DESTDIR}/var/account/acct
${INSTALL} -c -o root -g wheel -m 644 minfree \
${DESTDIR}/var/crash
${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
Index: distrib/sets/lists/etc/mi
===================================================================
RCS file: /data/mirror/openbsd/cvs/src/distrib/sets/lists/etc/mi,v
diff -u -p -r1.219 mi
--- distrib/sets/lists/etc/mi 19 Dec 2023 13:50:19 -0000 1.219
+++ distrib/sets/lists/etc/mi 21 Feb 2024 19:46:34 -0000
@@ -55,6 +55,7 @@
./root/.login
./root/.profile
./root/.ssh/authorized_keys
+./var/account/acct
./var/crash/minfree
./var/cron/at.deny
./var/cron/cron.deny
/var/account/acct in etc tgz