summaryrefslogtreecommitdiffstats
path: root/bin/fperms
diff options
context:
space:
mode:
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 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}}"