For bug #165034, make sure that symlinks are excluded from chmod calls. (trunk r5876...
authorZac Medico <zmedico@gentoo.org>
Sat, 3 Feb 2007 12:27:21 +0000 (12:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 3 Feb 2007 12:27:21 +0000 (12:27 -0000)
svn path=/main/branches/2.1.2/; revision=5882

bin/ebuild.sh

index aa3c1281fdb172a217ed48bbcc756c766b758c25..d943a64a11848a2ebd93e762ca4326cbf6d81c6e 100755 (executable)
@@ -456,7 +456,7 @@ unpack() {
        done
        # Do not chmod '.' since it's probably ${WORKDIR} and PORTAGE_WORKDIR_MODE
        # should be preserved.
-       find . -mindepth 1 -print0 | ${XARGS} -0 chmod -f a+rX,u+w,g-w,o-w
+       find . -mindepth 1 ! -type l -print0 | ${XARGS} -0 chmod -f a+rX,u+w,g-w,o-w
 }
 
 strip_duplicate_slashes() {