From owner-freebsd-fs@FreeBSD.ORG Thu Nov 12 14:44:34 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F3151065672 for ; Thu, 12 Nov 2009 14:44:34 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id E5B158FC1B for ; Thu, 12 Nov 2009 14:44:33 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 9so587330eyd.9 for ; Thu, 12 Nov 2009 06:44:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=yv6lwIM8ceS6zAsqeTE3MNY9IE9H0vL/Xf9nqIkkBbk=; b=jM3mmuERBYXPwulHjAfBf3kiLzlMZUkO7IUbwSvnWQy22NE1XBMcbL7gZyJN8vDYPy uLck2pRzqQa75qwpl+OGPuRfW6r9XYtIzqwhPNHSICbl0yvnbl3+uUQq8H7lpFRckv10 6gJeddPHE3+PGFQ1yFLUvAHbTnukXdT9uZm4I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=gL6qrkRR2zCTnq2rFKw12gGZldk/rJuqwDYa2sWdzVPcXQsS5fy8wOVAG/X5In6Wnl 2e/My6IOuvzIegVOg4vtg6N4C2OV/CXMSmhQPB94QIbYYtZD9qxdfF/C/ABC7qm7W6Hr E2aW99eLCWrx99jSKX1TN0znG+N/9268PNumQ= MIME-Version: 1.0 Received: by 10.213.103.144 with SMTP id k16mr2545073ebo.66.1258035823265; Thu, 12 Nov 2009 06:23:43 -0800 (PST) In-Reply-To: References: <200911102227.nAAMRXTf073603@svn.freebsd.org> <20091110224524.GC3194@garage.freebsd.pl> Date: Thu, 12 Nov 2009 14:23:43 +0000 Message-ID: <2e027be00911120623v2019be2euc48a6f0ec9a049a6@mail.gmail.com> From: Tom Evans To: Matthias Andree , freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: HEADS UP: Important bug fix in ZFS replay code! X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2009 14:44:34 -0000 On Thu, Nov 12, 2009 at 2:16 PM, Matthias Andree wrote: > Am 10.11.2009, 23:45 Uhr, schrieb Pawel Jakub Dawidek : > > > You can locate such files with the following command: >> >> # find / -perm -7777 -print0 | xargs -0 ls -ld >> > > Use ls -ldb to be on the safe side (control characters!). > > So how about these refinements: > > find / -perm -7777 -exec ls -ldb '{}' + > find / -perm -7777 -ls (not sure what that does with escapes) > > > You can locate and fix such files with the following command: >> >> # find / -perm -7777 -print0 | xargs -0 chmod a-s,o-w,-t >> > > find / -perm -7777 -exec chmod a-s,o-w,-t '{}' + > > -- > Matthias Andree > > > -exec causes a fork()/exec() for each file found doesn't it? xargs would be more efficient (since we're bikeshedding :) Cheers Tom