From c51145c55523af4f0bef8d5006e40fbbeab43056 Mon Sep 17 00:00:00 2001 From: bluhm Date: Thu, 29 Feb 2024 22:21:21 +0000 Subject: [PATCH] An empty file /var/account/acct in etc.tgz simplifies accounting. OK deraadt@ --- distrib/sets/lists/etc/mi | 1 + etc/Makefile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/distrib/sets/lists/etc/mi b/distrib/sets/lists/etc/mi index 3b75fe43958..7547d98eb5d 100644 --- a/distrib/sets/lists/etc/mi +++ b/distrib/sets/lists/etc/mi @@ -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 diff --git a/etc/Makefile b/etc/Makefile index 307c698f1fa..3d157d8493d 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.487 2023/12/13 11:34:56 job Exp $ +# $OpenBSD: Makefile,v 1.488 2024/02/29 22:21:21 bluhm Exp $ .include @@ -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 \ -- 2.20.1