diff options
author | Bill Nottingham <notting@redhat.com> | 2010-09-14 11:48:33 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-09-14 11:48:33 -0400 |
commit | ae5338178c287a5354aee978a72998d3e72585a1 (patch) | |
tree | c2bc5756a3b8f3831b9f72709934f4aad520516d /rc.d/rc.sysinit | |
parent | 38e0342f621d8b68691f1e29bdcb7e4a190ed181 (diff) | |
download | initscripts-ae5338178c287a5354aee978a72998d3e72585a1.tar initscripts-ae5338178c287a5354aee978a72998d3e72585a1.tar.gz initscripts-ae5338178c287a5354aee978a72998d3e72585a1.tar.bz2 initscripts-ae5338178c287a5354aee978a72998d3e72585a1.tar.xz initscripts-ae5338178c287a5354aee978a72998d3e72585a1.zip |
Reset btmp on boot too, if necessary (#633768, <dmach@redhat.com>)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index ac03961d..ff003e92 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -587,9 +587,10 @@ rm -f /var/gdm/.gdmfifo &> /dev/null # Clean up utmp/wtmp > /var/run/utmp -touch /var/log/wtmp -chgrp utmp /var/run/utmp /var/log/wtmp +touch /var/log/wtmp /var/log/btmp +chgrp utmp /var/run/utmp /var/log/wtmp /var/log/btmp chmod 0664 /var/run/utmp /var/log/wtmp +chmod 0600 /var/log/btmp if [ -n "$_NEED_XFILES" ]; then > /var/run/utmpx touch /var/log/wtmpx |