summaryrefslogtreecommitdiffstats
path: root/bin/fowners
diff options
context:
space:
mode:
Diffstat (limited to 'bin/fowners')
-rwxr-xr-xbin/fowners5
1 files changed, 4 insertions, 1 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}}"