fix find & deletion of old files so that it doesn't look in kernfs
or fdesc fs
This commit is contained in:
parent
c050664467
commit
a7a0d9856e
@ -41,7 +41,7 @@ if [ -d /var/rwho ] ; then
|
||||
fi
|
||||
|
||||
cd /tmp
|
||||
find / ! -fstype local -a -prune -o \
|
||||
find / \( ! -fstype local -o -fstype fdesc -o -fstype kernfs \) -a -prune -o \
|
||||
\( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name core \
|
||||
-o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \
|
||||
-a -atime +3 -exec rm -f -- {} \;
|
||||
|
Loading…
Reference in New Issue
Block a user