diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-03-16 02:47:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-03-16 02:47:54 +0000 |
commit | 9df8f50123314ed6e917908c8abbab15f2ec3163 (patch) | |
tree | c45a9ea9a819077b4ac4cbb87dfbaa6b539360c2 /etc | |
parent | 396bb0e36d546d24cca405a19bd373853b2cf7c0 (diff) |
run pruning find with -x, to avoid /tmp based mountpoint pruning
Diffstat (limited to 'etc')
-rw-r--r-- | etc/daily | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/daily b/etc/daily index 9307c4e5cd1..3c3ecbf22b3 100644 --- a/etc/daily +++ b/etc/daily @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: daily,v 1.27 1998/11/29 21:35:17 deraadt Exp $ +# $OpenBSD: daily,v 1.28 1999/03/16 02:47:53 deraadt Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin @@ -21,15 +21,15 @@ echo "" echo "Removing scratch and junk files:" if [ -d /tmp -a ! -h /tmp ]; then cd /tmp && { - find . -name 'ssh-*' -prune -o -type f -atime +3 -execdir rm -f -- {} \; - find . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ + find -x . -name 'ssh-*' -prune -o -type f -atime +3 -execdir rm -f -- {} \; + find -x . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ >/dev/null 2>&1; } fi if [ -d /var/tmp -a ! -h /var/tmp ]; then cd /var/tmp && { - find . ! -name . ! -type d -atime +7 -execdir rm -f -- {} \; - find . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ + find -x . ! -name . ! -type d -atime +7 -execdir rm -f -- {} \; + find -x . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ >/dev/null 2>&1; } fi |