summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}}"