summaryrefslogtreecommitdiffstats
path: root/bin/fperms
blob: 1d5326ec9d8d1bbb67bd0c3ffb2b3372087c286e (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

# we can't prefix all arguments because
# chmod takes random options
slash="/"
exec chmod "${@/#${slash}/${D}${slash}}"