diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 2 |
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 |