don't remove /var/tmp/vi.recover in (commented *out*) find's.
this fixes PR 11120. XXX note that this is supposed never to be uncommented due to a security issue (see /etc/daily) but there is no reason to do things doubly wrong.
This commit is contained in:
parent
3d1c1edbc5
commit
eea58e8475
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: daily,v 1.34 2000/08/25 01:11:42 hubertf Exp $
|
||||
# $NetBSD: daily,v 1.35 2001/04/22 20:34:48 aymeric Exp $
|
||||
# @(#)daily 8.2 (Berkeley) 1/25/94
|
||||
#
|
||||
|
||||
@ -47,7 +47,8 @@ echo "Uptime: " `uptime`
|
||||
#if [ -d /var/tmp -a ! -h /var/tmp ]; then
|
||||
# cd /var/tmp && {
|
||||
# find . ! -name . -atime +7 -exec rm -f -- {} \;
|
||||
# find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \
|
||||
# find . ! \( -name . -o -name vi.recover \) -type d \
|
||||
# -mtime +1 -exec rmdir -- {} \; \
|
||||
# >/dev/null 2>&1; }
|
||||
#fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user