summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2018-05-08 10:38:31 -0400
committerMike Gilbert <floppym@gentoo.org>2018-05-08 10:38:31 -0400
commit06ac51cf5bdb3220d427819cdfafdab231e4a4f8 (patch)
tree3a5920e013f2d36723c1d3e619035c9ee7d39251 /eclass/fcaps.eclass
parentprofiles/thirdpartymirrors: Update ImageMagick mirror list (diff)
downloadgentoo-06ac51cf5bdb3220d427819cdfafdab231e4a4f8.tar.gz
gentoo-06ac51cf5bdb3220d427819cdfafdab231e4a4f8.tar.bz2
gentoo-06ac51cf5bdb3220d427819cdfafdab231e4a4f8.zip
fcaps.eclass: don't assume D and ROOT end with a slash
Closes: https://bugs.gentoo.org/655244
Diffstat (limited to 'eclass/fcaps.eclass')
-rw-r--r--eclass/fcaps.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/fcaps.eclass b/eclass/fcaps.eclass
index 7b388849df60..467f955f5e9a 100644
--- a/eclass/fcaps.eclass
+++ b/eclass/fcaps.eclass
@@ -110,11 +110,12 @@ fcaps() {
root=${EROOT:-${ROOT}}
;;
esac
+ root=${root%/}
# Process every file!
local file
for file ; do
- [[ ${file} != /* ]] && file="${root}${file}"
+ [[ ${file} != /* ]] && file="${root}/${file}"
if use filecaps ; then
# Try to set capabilities. Ignore errors when the