From owner-freebsd-hackers Mon Nov 20 14:51:38 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.numachi.com (numachi.numachi.com [198.175.254.2]) by hub.freebsd.org (Postfix) with SMTP id CD63537B4D7 for ; Mon, 20 Nov 2000 14:51:35 -0800 (PST) Received: (qmail 17273 invoked by uid 3001); 20 Nov 2000 22:51:34 -0000 Received: from natto.numachi.com (198.175.254.216) by numachi.numachi.com with SMTP; 20 Nov 2000 22:51:34 -0000 Received: (qmail 23477 invoked by uid 1001); 20 Nov 2000 22:51:33 -0000 Date: Mon, 20 Nov 2000 17:51:33 -0500 From: Brian Reichert To: Alfred Perlstein Cc: Brian Reichert , freebsd-hackers@FreeBSD.ORG Subject: Re: find, -delete, and relative paths Message-ID: <20001120175133.T11172@numachi.com> References: <20001120161557.R11172@numachi.com> <20001120144853.E18037@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001120144853.E18037@fw.wintelcom.net>; from bright@wintelcom.net on Mon, Nov 20, 2000 at 02:48:53PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Nov 20, 2000 at 02:48:53PM -0800, Alfred Perlstein wrote: > * Brian Reichert [001120 13:16] 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? > > Blind guess, is /usr/local/logs/lsp a symlink to someplace or is any > part of the path a symlink that contains some form of /../ ? Nope, no symlinks at all. Nice try, though. :) > -- > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > "I have the heart of a child; I keep it in a jar on my desk." -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA Intel architecture: the left-hand path To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message