aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit1
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index a41b5437..d7f92316 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -653,6 +653,7 @@ _NEED_XFILES=
for afile in /var/lock/* /var/run/*; do
if [ -d "$afile" ]; then
[ "`basename $afile`" != "news" -a "`basename $afile`" != "sudo" -a "`basename $afile`" != "mon" ] && rm -f $afile/*
+ [ "`basename $afile`" = "sudo" ] && rm -f $afile/*/*
else
rm -f $afile
fi