aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2000-02-07 12:03:26 +0000
committerNalin Dahyabhai <nalin@redhat.com>2000-02-07 12:03:26 +0000
commitb31494e1f51aa95360ebfa6b9c749fd1e1dc4d1a (patch)
tree3f0273f61d20a0457e08ddfdf0c4fe4160ff80f0 /rc.d
parentf20ad6f042eee56039bba44592ab7014c1183a9e (diff)
downloadinitscripts-b31494e1f51aa95360ebfa6b9c749fd1e1dc4d1a.tar
initscripts-b31494e1f51aa95360ebfa6b9c749fd1e1dc4d1a.tar.gz
initscripts-b31494e1f51aa95360ebfa6b9c749fd1e1dc4d1a.tar.bz2
initscripts-b31494e1f51aa95360ebfa6b9c749fd1e1dc4d1a.tar.xz
initscripts-b31494e1f51aa95360ebfa6b9c749fd1e1dc4d1a.zip
fix check for /var/*/news, work around for bug #9140
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
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