From owner-freebsd-security Thu Oct 31 08:10:06 1996 Return-Path: owner-security Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA17378 for security-outgoing; Thu, 31 Oct 1996 08:10:06 -0800 (PST) Received: from kdat.calpoly.edu (kdat.csc.calpoly.edu [129.65.54.101]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id IAA17370 for ; Thu, 31 Oct 1996 08:10:03 -0800 (PST) Received: (from nlawson@localhost) by kdat.calpoly.edu (8.6.12/N8) id IAA20880; Thu, 31 Oct 1996 08:10:03 -0800 From: Nathan Lawson Message-Id: <199610311610.IAA20880@kdat.calpoly.edu> Subject: Re: /etc/security To: wollman@lcs.mit.edu (Garrett Wollman) Date: Thu, 31 Oct 1996 08:10:02 -0800 (PST) Cc: freebsd-security@freebsd.org In-Reply-To: <9610311505.AA19105@halloran-eldar.lcs.mit.edu> from "Garrett Wollman" at Oct 31, 96 10:05:55 am X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-security@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > < > >> checking setuid files and devices: > >> find: /doscopy/sb16/pro_org/i'vebeen.org: illegal path > >> find: /doscopy/sb16/pro_org/she'llbe.org: illegal path > > The best way to deal with this is probably using the `-print0' primary > to `find' and using a `perl -n0' script to process the results, like: > > find ..... -print0 | perl -n0e 'exec "/bin/ls", "-lFgod", <>;' Yes, the -print0 option is useful, but to avoid executing another interpreter just for the task of filtering out the NULLs, I prefer to use xargs -0 >From the man page: -0 Changes xargs to expect NUL (``\0'') characters as seperators, instead of spaces and newlines. This is expected to be used in concert with the -print0 function in find. This avoids execing a costly interpreter and keeps the scripts using xargs, which is useful with very long path lists. -- Nate Lawson "There are a thousand hacking at the branches of CPE Senior evil to one who is striking at the root." CSL Admin -- Henry David Thoreau, 'Walden', 1854