From: Zac Medico Date: Sat, 17 Sep 2011 05:50:36 +0000 (-0700) Subject: config: quote PORTDIR_OVERLAY paths more X-Git-Tag: v2.2.0_alpha59~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=38af3b5daa12ae1212850cc6722081cbe13e8a71;p=portage.git config: quote PORTDIR_OVERLAY paths more This fixes the issue in bug #383269, comment #3. --- diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py index bf8889481..73af0660e 100644 --- a/pym/portage/package/ebuild/config.py +++ b/pym/portage/package/ebuild/config.py @@ -511,11 +511,11 @@ class config(object): new_ov = [] if portdir_overlay: - whitespace_re = re.compile(r"\s") + shell_quote_re = re.compile(r"[\s\\\"'$`]") for ov in portdir_overlay: ov = normalize_path(ov) if os.path.isdir(ov): - if whitespace_re.search(ov) is not None: + if shell_quote_re.search(ov) is not None: ov = portage._shell_quote(ov) new_ov.append(ov) else: