On Mon, Jan 14, 2013 at 9:07 AM, Rainer Müller <[email protected]> wrote:
> On 2013-01-14 09:20, Sean Farley wrote:
>> $ /usr/bin/find . -mindepth 1 -maxdepth 1 ! -perm -01000 -exec cp -R {} /tmp 
>> \;
>>
>> I think all we really need to do in cases like these are ignore files
>> / directories that have the sticky bit set.
>
> The problem is not the sticky bit, but the missing read permissions.
> I would say this should be:
>
> /usr/bin/find . -mindepth 1 -maxdepth 1 -perm -+r -exec cp -R {} /tmp \;
>
> The syntax is strange, but I think -+r is really what we want:
> read permissions for at least one of owner, group or others.

You and Jeremy are right about the stick bit. Sigh, that's what I get
for trying to think after my bedtime.
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to