Subject: More nvi fallout: /etc/daily
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Mike Long <mike.long@analog.com>
List: current-users
Date: 02/05/1994 02:47:39
If you don't run vi often enough, /etc/daily kills the
/var/tmp/vi.recover directory.
I found out while recreating it that chmod +t <dir> doesn't work, but
chmod u+t does; is that right? The man page says that o+t won't work
(which makes sense), o, but +t by itself should work, IMHO.
Fix for /etc/daily:
*** /usr/src/etc/daily Wed Dec 22 05:55:03 1993
--- daily Sat Feb 5 02:10:54 1994
***************
*** 19,25 ****
if [ -d /var/tmp ]; then
cd /var/tmp && {
find . ! -name . -atime +7 -exec rm -f -- {} \;
! find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \
>/dev/null 2>&1; }
fi
--- 19,26 ----
if [ -d /var/tmp ]; then
cd /var/tmp && {
find . ! -name . -atime +7 -exec rm -f -- {} \;
! find . ! -name . ! -name vi.recover \
! -type d -mtime +1 -exec rmdir -- {} \; \
>/dev/null 2>&1; }
fi
--
Mike Long Mike.Long@Analog.com
VLSI Design Engineer voice: (617)461-4030
Analog Devices, SPD Div. FAX: (617)461-3010
Norwood, MA 02062 *this = !opinion(Analog);
------------------------------------------------------------------------------