From 791af4a1e2fe58697fff3df66450976407115302 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 13 Aug 1998 21:57:40 +0000 Subject: Don't prune dirs in /var/tmp on first pass; problem noted by m4@umn.edu --- etc/daily | 4 ++-- 1 file 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 -- cgit v1.2.3