From owner-freebsd-questions@FreeBSD.ORG Mon Mar 15 19:36:49 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3307316A4CE for ; Mon, 15 Mar 2004 19:36:49 -0800 (PST) Received: from mail.mi.celestial.com (dagney.celestial.com [192.136.111.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FB0343D39 for ; Mon, 15 Mar 2004 19:36:49 -0800 (PST) (envelope-from bill@celestial.com) Received: by mail.mi.celestial.com (Postfix, from userid 203) id D8BA311E8AB; Mon, 15 Mar 2004 19:36:48 -0800 (PST) Date: Mon, 15 Mar 2004 19:36:48 -0800 From: Bill Campbell To: Questions , freebsd-questions-local@be-well.ilk.org Message-ID: <20040316033648.GA53149@alexis.mi.celestial.com> Mail-Followup-To: Questions , freebsd-questions-local@be-well.ilk.org References: <40564E2C.7060706@earthlink.net> <44smg9oa4r.fsf@be-well.ilk.org> <20040315190746.799e4b0d.cpressey@catseye.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040315190746.799e4b0d.cpressey@catseye.mine.nu> User-Agent: Mutt/1.4.1i Subject: Re: [Fwd: Re: deleting directories with ??? in name] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2004 03:36:49 -0000 On Mon, Mar 15, 2004, Chris Pressey wrote: >On 15 Mar 2004 20:26:12 -0500 >Lowell Gilbert wrote: > ... > >That wouldn't explain why 'rm -i *' returned 'no match', though. > >I think it's more likely that (for whatever reason) the FTP server is >allowing files to be created with extremely funky filenames - possibly >embedded NULs? I wouldn't have thought this was possible with open(2) >or fopen(3) - and I wouldn't think that an FTP server would use some >other method of creating a file... I've never seen embedded NULs, but I've seen a pretty wide variety of other garbage in our anonymous ftp site's /incoming directory. We allow uploads with automatic e-mail notification when any new file is uploaded, but the ownership and permissions are set so that nobody can download without manual intervention by somebody here. My normal way of nuking these directories is a one-liner typed from the command line using gnu-find where $somefile is some file or directory in in the incoming directory that's older than the ones I want to nuke: gfind . -newer $somefile -maxdepth 1 -mindepth 1 -print0 | xargs -0 rm -rv Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``It's time to feed the hogs'' -- Unintended Consequences