[arch-projects] [initscripts] [PATCH 04/13] rc.sysinit: Fix /tmp/.* pattern
Kurt J. Bosch
kjb-temp-2009 at alpenjodel.de
Tue Jul 12 12:10:57 EDT 2011
Use correct patterns and get rid of the /dev/null redirection workaround needed when trying to remove '..'.
---
rc.sysinit | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rc.sysinit b/rc.sysinit
index bfaaf1b..6af105f 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -227,7 +227,7 @@ RANDOM_SEED=/var/lib/misc/random-seed
cp $RANDOM_SEED /dev/urandom
stat_busy "Removing Leftover Files"
- rm -rf /etc/{nologin,shutdownpid} /forcefsck /tmp/* /tmp/.* /var/run/daemons &>/dev/null
+ rm -rf /etc/{nologin,shutdownpid} /forcefsck /tmp/* /tmp/.[^.]* /tmp/..?* /var/run/daemons
[[ ! -L /var/lock ]] && rm -rf /var/lock/*
if [[ ! -L /var/run && -d /var/run ]]; then
find /var/run/ \! -type d -delete
--
1.7.1
More information about the arch-projects
mailing list