summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-03-18 20:39:17 +0000
committerMike Frysinger <vapier@gentoo.org>2007-03-18 20:39:17 +0000
commita7a93d92e4391e9c5dfed87afc1f803a9a4a8405 (patch)
treef15ac337ed9fcca6e9b01da73ee0ff1771b46f69 /bin/fperms
parentAppropriately use globals() instead of locals() as suggested by marienz. (diff)
downloadportage-multirepo-a7a93d92e4391e9c5dfed87afc1f803a9a4a8405.tar.gz
portage-multirepo-a7a93d92e4391e9c5dfed87afc1f803a9a4a8405.tar.bz2
portage-multirepo-a7a93d92e4391e9c5dfed87afc1f803a9a4a8405.zip
revert previous change since it is obviously incorrect as pointed out by grobian
svn path=/main/trunk/; revision=6247
Diffstat (limited to 'bin/fperms')
-rwxr-xr-xbin/fperms5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/fperms b/bin/fperms
index 5eb67e5f..1d5326ec 100755
--- a/bin/fperms
+++ b/bin/fperms
@@ -3,4 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-exec chmod "${@/#/${D}/}"
+# we can't prefix all arguments because
+# chmod takes random options
+slash="/"
+exec chmod "${@/#${slash}/${D}${slash}}"