make sure we prefix all arguments with $D, including ones that dont start with a /
authorMike Frysinger <vapier@gentoo.org>
Sat, 17 Mar 2007 21:52:26 +0000 (21:52 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 17 Mar 2007 21:52:26 +0000 (21:52 -0000)
svn path=/main/trunk/; revision=6240

bin/dodir
bin/fowners
bin/fperms

index abf76516b655145f7a3abbfb5b5c6649d4707fef..1902c6f38dee335ffda8ebaa8721b3e098e4e2c5 100755 (executable)
--- a/bin/dodir
+++ b/bin/dodir
@@ -3,5 +3,4 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-slash=/
-exec install -d ${DIROPTIONS} "${@/#${slash}/${D}${slash}}"
+exec install -d ${DIROPTIONS} "${@/#/${D}/}"
index d13cb030035e9082c76ee9af157217afb3b77d6d..9356355430b94c2c25e4df0f78c1ac57a7574d81 100755 (executable)
@@ -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 chown "${@/#${slash}/${D}${slash}}"
+exec chown "${@/#/${D}/}"
index 53a2b0fd2b2994d69563d361c9ad6977c77d6093..5eb67e5f5267bb28cfce81c7e68c1f5266939e8b 100755 (executable)
@@ -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}/}"