crontab Daemon-from-Hell
Karl Fox
karl at mstar.MorningStar.COM
Sun Jun 4 12:44:51 AEST 1989
In article <1526 at sialis.mn.org> rjg at sialis.mn.org (Robert J. Granvin) writes:
>>> cd /usr/spool/uucppublic
>>> find . -type f -mtime +30 -exec rm -f {} \;
>>
>>This is dangerous if run as root. If anything - disk error, anything -
>>happens to make /usr/spool/uucppublic unavailable, you will wipe your
>>file structure.
>
>??
>
>/usr/spool/uucppublic is not a required nor integral part of the
>system, filesystem, file structure or even UUCP.
What Tom was pointing out is that if /usr/spool/uucppublic isn't there,
then the 'cd' will fail, leaving the 'find' running in '/'. Not a nice
idea at all -- this is a NASTY bug.
--
Karl Fox, Morning Star Technologies karl at MorningStar.COM
More information about the Unix-pc.general
mailing list