HEADS UP: Important bug fix in ZFS replay code!

Tom Evans tevans.uk at googlemail.com
Thu Nov 12 14:44:34 UTC 2009


On Thu, Nov 12, 2009 at 2:16 PM, Matthias Andree <matthias.andree at gmx.de>wrote:

> Am 10.11.2009, 23:45 Uhr, schrieb Pawel Jakub Dawidek <pjd at freebsd.org>:
>
>
>  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


More information about the freebsd-fs mailing list