summaryrefslogtreecommitdiffstats
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
parentc030d162406ab4402770c8512a7164d1eddc0324 (diff)
downloadportage-a7a93d92e4391e9c5dfed87afc1f803a9a4a8405.tar.gz
portage-a7a93d92e4391e9c5dfed87afc1f803a9a4a8405.tar.bz2
portage-a7a93d92e4391e9c5dfed87afc1f803a9a4a8405.zip
revert previous change since it is obviously incorrect as pointed out by grobian
svn path=/main/trunk/; revision=6247
-rwxr-xr-xbin/fowners5
-rwxr-xr-xbin/fperms5
2 files changed, 8 insertions, 2 deletions
diff --git a/bin/fowners b/bin/fowners
index 935635543..766266a13 100755
--- a/bin/fowners
+++ b/bin/fowners
@@ -3,4 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-exec chown "${@/#/${D}/}"
+# we can't prefix all arguments because
+# chown takes random options
+slash="/"
+exec chown "${@/#${slash}/${D}${slash}}"
diff --git a/bin/fperms b/bin/fperms
index 5eb67e5f5..1d5326ec9 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}}"