1 |
ferringb 11/12/04 06:52:39 |
2 |
|
3 |
Modified: ChangeLog java-vm-2.eclass |
4 |
Log: |
5 |
Fix IFS=: bleeding out from java-vm_sandbox-predict invocations |
6 |
|
7 |
Revision Changes Path |
8 |
1.34 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.34&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.34&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.33&r2=1.34 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.33 |
18 |
retrieving revision 1.34 |
19 |
diff -u -r1.33 -r1.34 |
20 |
--- ChangeLog 3 Dec 2011 20:43:21 -0000 1.33 |
21 |
+++ ChangeLog 4 Dec 2011 06:52:39 -0000 1.34 |
22 |
@@ -1,6 +1,9 @@ |
23 |
# ChangeLog for eclass directory |
24 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.33 2011/12/03 20:43:21 ulm Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.34 2011/12/04 06:52:39 ferringb Exp $ |
27 |
+ |
28 |
+ 04 Dec 2011; Brian Harring <ferringb@g.o> java-vm-2.eclass: |
29 |
+ Fix IFS=: bleeding out from java-vm_sandbox-predict invocations. |
30 |
|
31 |
03 Dec 2011; Ulrich Mueller <ulm@g.o> elisp.eclass, |
32 |
elisp-common.eclass: |
33 |
|
34 |
|
35 |
|
36 |
1.41 eclass/java-vm-2.eclass |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-vm-2.eclass?rev=1.41&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-vm-2.eclass?rev=1.41&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-vm-2.eclass?r1=1.40&r2=1.41 |
41 |
|
42 |
Index: java-vm-2.eclass |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v |
45 |
retrieving revision 1.40 |
46 |
retrieving revision 1.41 |
47 |
diff -u -r1.40 -r1.41 |
48 |
--- java-vm-2.eclass 24 Nov 2011 20:05:01 -0000 1.40 |
49 |
+++ java-vm-2.eclass 4 Dec 2011 06:52:39 -0000 1.41 |
50 |
@@ -1,6 +1,6 @@ |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.40 2011/11/24 20:05:01 sera Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.41 2011/12/04 06:52:39 ferringb Exp $ |
55 |
|
56 |
# ----------------------------------------------------------------------------- |
57 |
# @eclass-begin |
58 |
@@ -250,7 +250,9 @@ |
59 |
has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}" |
60 |
|
61 |
local path path_arr=("$@") |
62 |
- IFS=":" path="${path_arr[*]}" |
63 |
+ # subshell this to prevent IFS bleeding out dependant on bash version. |
64 |
+ # could use local, which *should* work, but that requires a lot of testing. |
65 |
+ path=$(IFS=":" echo "${path_arr[*]}") |
66 |
dodir /etc/sandbox.d |
67 |
echo "SANDBOX_PREDICT=\"${path}\"" > "${ED}/etc/sandbox.d/20${VMHANDLE}" \ |
68 |
|| die "Failed to write sandbox control file" |