summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-08-13 21:57:40 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-08-13 21:57:40 +0000
commit791af4a1e2fe58697fff3df66450976407115302 (patch)
tree69bbfa20b7faa503649c2b21800df935832aa7a7
parent248cbbdc7fc28f38fa8e6e2b52d8535eded841c8 (diff)
Don't prune dirs in /var/tmp on first pass; problem noted by m4@umn.edu
-rw-r--r--etc/daily4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/daily b/etc/daily
index a3f4625b47a..6e721425ddd 100644
--- a/etc/daily
+++ b/etc/daily
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: daily,v 1.24 1998/06/30 23:08:52 deraadt Exp $
+# $OpenBSD: daily,v 1.25 1998/08/13 21:57:39 millert Exp $
# From: @(#)daily 8.2 (Berkeley) 1/25/94
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
@@ -29,7 +29,7 @@ fi
if [ -d /var/tmp -a ! -h /var/tmp ]; then
cd /var/tmp && {
- find . ! -name . -atime +7 -execdir rm -f -- {} \;
+ find . ! -name . ! -type d -atime +7 -execdir rm -f -- {} \;
find . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \
>/dev/null 2>&1; }
fi