summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2017-05-13 16:44:14 +0100
committerJames Le Cuirot <chewi@gentoo.org>2017-05-13 16:44:14 +0100
commita708ed788e27a3e1619bec0dc2f08d8a8eb077db (patch)
tree9312c9d1e0abf9ef5c544b56c421c4eabe6fc7ec /eclass/cdrom.eclass
parentnet-wireless/bluez: Version bump (diff)
downloadgentoo-a708ed788e27a3e1619bec0dc2f08d8a8eb077db.tar.gz
gentoo-a708ed788e27a3e1619bec0dc2f08d8a8eb077db.tar.bz2
gentoo-a708ed788e27a3e1619bec0dc2f08d8a8eb077db.zip
cdrom.eclass: Fix matching of entries with trailing /, bug #618344
Diffstat (limited to 'eclass/cdrom.eclass')
-rw-r--r--eclass/cdrom.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
index 2270bbe30cff..47e2c6342e06 100644
--- a/eclass/cdrom.eclass
+++ b/eclass/cdrom.eclass
@@ -281,7 +281,7 @@ _cdrom_glob_match() {
shopt -s extglob nocaseglob nullglob || die
# The first person to make this work without an eval wins a
# cookie. It breaks without it when spaces are present.
- eval "ARRAY=( ${p} )"
+ eval "ARRAY=( ${p%\?()} )"
echo ${ARRAY[0]}
)
}