From 838a5c54a4071af26c090a524a31c1ceb54f96f7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 31 Jan 2007 04:40:31 +0000 Subject: [PATCH] scrub exec filename in case someone does something silly like pass the fullpath to a binary --- eclass/eutils.eclass | 4 ++-- 1 file 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}" -- 2.26.2