diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-01-31 04:40:31 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-01-31 04:40:31 +0000 |
commit | 143f5ef0f22b35009b5af655765ba96b26a8ea93 (patch) | |
tree | c738950e2a0c0b87b41d744a0437d4646d9c2196 /eclass | |
parent | Marked ppc stable for bug #150343. (diff) | |
download | gentoo-2-143f5ef0f22b35009b5af655765ba96b26a8ea93.tar.gz gentoo-2-143f5ef0f22b35009b5af655765ba96b26a8ea93.tar.bz2 gentoo-2-143f5ef0f22b35009b5af655765ba96b26a8ea93.zip |
scrub exec filename in case someone does something silly like pass the fullpath to a binary
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/eutils.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 6b4707c7da08..cb0131efa402 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.271 2007/01/22 06:03:14 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.272 2007/01/31 04:40:31 vapier Exp $ # # This eclass is for general purpose functions that most ebuilds # have to implement themselves. @@ -894,7 +894,7 @@ make_desktop_entry() { else local desktop_name="${PN}-${SLOT}" fi - local desktop=${T}/${exec%% *}-${desktop_name}.desktop + local desktop="${T}/$(echo ${exec} | sed 's:[[:space:]/:]:_:g')-${desktop_name}.desktop" #local desktop=${T}/${exec%% *:-${desktop_name}}.desktop cat <<-EOF > "${desktop}" |