Path: utzoo!utgpu!watmath!uunet!lll-winken!csd4.milw.wisc.edu!mailrus!tut.cis.ohio-state.edu!mstar!karl From: karl@mstar.MorningStar.COM (Karl Fox) Newsgroups: unix-pc.general Subject: Re: crontab Daemon-from-Hell Message-ID: <1108@mstar.MorningStar.COM> Date: 4 Jun 89 02:44:51 GMT References: <19071@cup.portal.com> <14373@bfmny0.UUCP> <1526@sialis.mn.org> Reply-To: karl@MorningStar.COM (Karl Fox) Organization: Morning Star Technologies, Columbus, Ohio Lines: 18 In article <1526@sialis.mn.org> rjg@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@MorningStar.COM