On 01/14/2013 07:07 AM, Rainer Müller 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 \;

This worked for me running it as myself:

/usr/bin/find /Volumes/Cg-3.1.0013 -depth -perm -+r -print0 | /usr/bin/cpio -0 -p -d -m -u /tmp/Cg
find: /Volumes/Cg-3.1.0013/.Trashes: Permission denied
80164 blocks

Blair

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to