aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rwxr-xr-xrc.d/rc.sysinit2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 307bc17e..89f17574 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
check that LANG/LC_ALL/LINGUAS are set before we test what they're
set to
+ * rc.d/rc.sysinit:
+ fix check for /var/*/news, work around for bug #9140
+
2000-02-05 Nalin Dahyabhai <nalin@redhat.com>
* rc.d/init.d/single:
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 88949ccf..0fd30a69 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -446,7 +446,7 @@ _NEED_XFILES=
# I'd use find, but /usr may not be mounted.
for afile in /var/lock/* /var/run/*; do
if [ -d "$afile" ]; then
- [ "$afile" != "news" ] && rm -f $afile/*
+ [ "`basename $afile`" != "news" -a "`basename $afile`" != "sudo" ] && rm -f $afile/*
else
rm -f $afile
fi