Author: glen Date: Fri Feb 8 18:34:08 2008 New Revision: 9238 Modified: rc-scripts/trunk/rc.d/rc.sysinit Log: - use find to overcome arguments length exceeded when descending to php sessions dir (and yes, /usr is already mounted when this code is ran)
Modified: rc-scripts/trunk/rc.d/rc.sysinit ============================================================================== --- rc-scripts/trunk/rc.d/rc.sysinit (original) +++ rc-scripts/trunk/rc.d/rc.sysinit Fri Feb 8 18:34:08 2008 @@ -922,7 +922,8 @@ news|sudo|mon|cvs) ;; *) - rm -rf $afile/* + # remove everything underneath except dirs + find $afile ! -type d -print0 | xargs -0 rm -f ;; esac else @@ -1002,6 +1003,3 @@ fi wait echo - -# This must be last line ! -# vi:syntax=sh _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit