SVN: rc-scripts/trunk/rc.d/rc.sysinit
glen
glen at pld-linux.org
Fri Feb 8 18:34:09 CET 2008
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
More information about the pld-cvs-commit
mailing list