Make sure newly created /var/account/acct file is 0600 mode.

This commit is contained in:
Jordan K. Hubbard 1997-01-16 02:18:37 +00:00
parent ef7b564596
commit 525014855b

2
etc/rc
View File

@ -306,7 +306,7 @@ fi
if [ "X${accounting}" = X"YES" -a -d /var/account ]; then
echo 'turning on accounting'
if [ ! -e /var/account/acct ]; then
touch /var/account/acct
touch /var/account/acct && chmod 600 /var/account/acct
fi
accton /var/account/acct
fi