From owner-freebsd-hackers Mon Nov 20 17:39:36 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id 43A0137B4C5 for ; Mon, 20 Nov 2000 17:39:25 -0800 (PST) Received: from cain.gsoft.com.au (doconnor@cain [203.38.152.97]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id MAA12231; Tue, 21 Nov 2000 12:08:57 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20001120161557.R11172@numachi.com> Date: Tue, 21 Nov 2000 12:08:56 +1030 (CST) From: "Daniel O'Connor" To: Brian Reichert Subject: RE: find, -delete, and relative paths Cc: freebsd-hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 20-Nov-00 Brian Reichert wrote: > I didn't find anything after an admittedly quick look intp PRs and the mail > list archives: > > Under FreeBSD 3.4-RELEASE, we are running a simple log file scrubber: > > 15 3 * * * find /usr/local/logs/lsp \! -ctime 1 -delete > > I pointedly am using an absolute path, yes I get this warning repeatedly: > > find: -delete: /usr/local/logs/lsp: relative path potentially not safe > > How can I suppress this warning? Is it a bug in find, or did I > misunderstand the manpage? I don't know why, but I think find prints those messages when you attempt to delete a directory. If you do -> 15 3 * * * find /usr/local/logs/lsp -type f -a \! -ctime 1 -delete it should work.. --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message