]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- use find to overcome arguments length exceeded when descending to php sessions...
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 8 Feb 2008 17:34:08 +0000 (17:34 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Fri, 8 Feb 2008 17:34:08 +0000 (17:34 +0000)
svn-id: @9238

rc.d/rc.sysinit

index 455d1bd06f141b31006668c616ba4236063db871..4d1b4d242e2eaa522eefd19afe2e858f1e8a3ad2 100755 (executable)
@@ -922,7 +922,8 @@ for afile in /var/lock/* /var/run/*; do
                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 @@ if ! is_no "$RC_PROMPT" && [ -d /proc/$! ]; then
 fi
 wait
 echo
-
-# This must be last line !
-# vi:syntax=sh
This page took 0.200994 seconds and 4 git commands to generate.