--- rc.old 2005-08-19 01:35:02.000000000 +0900 +++ rc 2005-08-19 01:37:53.000000000 +0900 @@ -513,8 +513,11 @@ # Clear $svcdir from stale entries, but leave the caches around, as it # should help speed things up a bit - rm -rf $(ls -d1 "${svcdir}/"* 2>/dev/null | \ + if [ -n "${svcdir}" ] + then + rm -rf $(ls -d1 "${svcdir}/"* 2>/dev/null | \ grep -ve '\(depcache\|deptree\|envcache\)') + fi # Update the dependency cache /sbin/depscan.sh -u