diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-03-17 21:52:26 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-03-17 21:52:26 +0000 |
commit | 4505eb2b4855df288327682c646b49c67a94f9ba (patch) | |
tree | 6fec51b743f5388765821a630eb8af16cb935e62 /bin/fperms | |
parent | 8e92272ca18e7ad9eb381d1138935f024401cf54 (diff) | |
download | portage-4505eb2b4855df288327682c646b49c67a94f9ba.tar.gz portage-4505eb2b4855df288327682c646b49c67a94f9ba.tar.bz2 portage-4505eb2b4855df288327682c646b49c67a94f9ba.zip |
make sure we prefix all arguments with $D, including ones that dont start with a /
svn path=/main/trunk/; revision=6240
Diffstat (limited to 'bin/fperms')
-rwxr-xr-x | bin/fperms | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/fperms b/bin/fperms index 53a2b0fd2..5eb67e5f5 100755 --- a/bin/fperms +++ b/bin/fperms @@ -1,7 +1,6 @@ #!/bin/bash -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -slash=/ -exec chmod "${@/#${slash}/${D}${slash}}" +exec chmod "${@/#/${D}/}" |