summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-09-01 11:07:55 +0000
committerache <ache@FreeBSD.org>1997-09-01 11:07:55 +0000
commita5d0d0dc366585bf544d5db6b434a2b7d4602812 (patch)
tree596a0ef0670682526922f26a39614e6f128b5aa4 /etc
parent7408f58dd2998c4f5bc82a1d62b526bda90bcc3f (diff)
downloadFreeBSD-src-a5d0d0dc366585bf544d5db6b434a2b7d4602812.zip
FreeBSD-src-a5d0d0dc366585bf544d5db6b434a2b7d4602812.tar.gz
Do not remove /var/tmp/vi.recover
Diffstat (limited to 'etc')
-rwxr-xr-xetc/periodic/daily/110.clean-tmps4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/periodic/daily/110.clean-tmps b/etc/periodic/daily/110.clean-tmps
index 960c6aa..8fa1935 100755
--- a/etc/periodic/daily/110.clean-tmps
+++ b/etc/periodic/daily/110.clean-tmps
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $Id: 110.clean-tmps,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+# $Id: 110.clean-tmps,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
# This is a security hole, never use 'find' on a public directory
# with -exec rm -f as root. This can be exploited to delete any file
@@ -26,7 +26,7 @@ fi
if [ -d /var/tmp ]; then
cd /var/tmp && {
find . ! -name . -atime +7 -ctime +3 -exec rm -f -- {} \;
- find -d . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \
+ find -d . ! -name . ! name vi.recover -type d -mtime +1 -exec rmdir -- {} \; \
>/dev/null 2>&1
}
fi
OpenPOWER on IntegriCloud