diff options
author | 2011-12-04 06:52:39 +0000 | |
---|---|---|
committer | 2011-12-04 06:52:39 +0000 | |
commit | 2d650eb16a7626fb5c74e0575a77ba5baf75ec4f (patch) | |
tree | b45658344431b8c07d0c0cb0599550f010a41688 /eclass/java-vm-2.eclass | |
parent | Mask net-mail/dovecot-2.1_rc relases (diff) | |
download | historical-2d650eb16a7626fb5c74e0575a77ba5baf75ec4f.tar.gz historical-2d650eb16a7626fb5c74e0575a77ba5baf75ec4f.tar.bz2 historical-2d650eb16a7626fb5c74e0575a77ba5baf75ec4f.zip |
Fix IFS=: bleeding out from java-vm_sandbox-predict invocations
Diffstat (limited to 'eclass/java-vm-2.eclass')
-rw-r--r-- | eclass/java-vm-2.eclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/java-vm-2.eclass b/eclass/java-vm-2.eclass index 554f9e5715fa..c215a9b161d0 100644 --- a/eclass/java-vm-2.eclass +++ b/eclass/java-vm-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.40 2011/11/24 20:05:01 sera Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.41 2011/12/04 06:52:39 ferringb Exp $ # ----------------------------------------------------------------------------- # @eclass-begin @@ -250,7 +250,9 @@ java-vm_sandbox-predict() { has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}" local path path_arr=("$@") - IFS=":" path="${path_arr[*]}" + # subshell this to prevent IFS bleeding out dependant on bash version. + # could use local, which *should* work, but that requires a lot of testing. + path=$(IFS=":" echo "${path_arr[*]}") dodir /etc/sandbox.d echo "SANDBOX_PREDICT=\"${path}\"" > "${ED}/etc/sandbox.d/20${VMHANDLE}" \ || die "Failed to write sandbox control file" |