aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-08-11 04:04:46 -0400
committerAnthony G. Basile <blueness@gentoo.org>2018-08-11 04:04:46 -0400
commitfe81ef4377aa0b33ef90f0528de206cc413683c7 (patch)
treefd98b7cc21046b509c0d0a47bc65af997a884137 /net-vpn
parentnet-vpn/ipsec-tools: initial commit (diff)
downloadmusl-fe81ef4377aa0b33ef90f0528de206cc413683c7.tar.gz
musl-fe81ef4377aa0b33ef90f0528de206cc413683c7.tar.bz2
musl-fe81ef4377aa0b33ef90f0528de206cc413683c7.zip
net-vpn/ipsec-tools: remove GLOB_TILDE
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/ipsec-tools/files/ipsec-tools-remove_GLOB_TILDE.patch24
-rw-r--r--net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild1
2 files changed, 25 insertions, 0 deletions
diff --git a/net-vpn/ipsec-tools/files/ipsec-tools-remove_GLOB_TILDE.patch b/net-vpn/ipsec-tools/files/ipsec-tools-remove_GLOB_TILDE.patch
new file mode 100644
index 0000000..25984f4
--- /dev/null
+++ b/net-vpn/ipsec-tools/files/ipsec-tools-remove_GLOB_TILDE.patch
@@ -0,0 +1,24 @@
+diff -Naur ipsec-tools-0.8.2.orig/src/racoon/cftoken.c ipsec-tools-0.8.2/src/racoon/cftoken.c
+--- ipsec-tools-0.8.2.orig/src/racoon/cftoken.c 2012-08-29 11:24:51.000000000 +0000
++++ ipsec-tools-0.8.2/src/racoon/cftoken.c 2018-08-11 08:01:12.177136634 +0000
+@@ -4753,7 +4753,7 @@
+ return -1;
+ }
+
+- if (glob(path, GLOB_TILDE, NULL, &incstack[incstackp].matches) != 0 ||
++ if (glob(path, 0, NULL, &incstack[incstackp].matches) != 0 ||
+ incstack[incstackp].matches.gl_pathc == 0) {
+ plog(LLV_ERROR, LOCATION, NULL,
+ "glob found no matches for path \"%s\"\n", path);
+diff -Naur ipsec-tools-0.8.2.orig/src/racoon/cftoken.l ipsec-tools-0.8.2/src/racoon/cftoken.l
+--- ipsec-tools-0.8.2.orig/src/racoon/cftoken.l 2012-08-29 08:42:24.000000000 +0000
++++ ipsec-tools-0.8.2/src/racoon/cftoken.l 2018-08-11 08:01:21.512854300 +0000
+@@ -725,7 +725,7 @@
+ return -1;
+ }
+
+- if (glob(path, GLOB_TILDE, NULL, &incstack[incstackp].matches) != 0 ||
++ if (glob(path, 0, NULL, &incstack[incstackp].matches) != 0 ||
+ incstack[incstackp].matches.gl_pathc == 0) {
+ plog(LLV_ERROR, LOCATION, NULL,
+ "glob found no matches for path \"%s\"\n", path);
diff --git a/net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild b/net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild
index 6470e21..db0a367 100644
--- a/net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild
+++ b/net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild
@@ -191,6 +191,7 @@ src_prepare() {
# musl fixes
eapply "${FILESDIR}"/${PN}-remove__P.patch
+ eapply "${FILESDIR}"/${PN}-remove_GLOB_TILDE.patch
AT_M4DIR="${S}" eautoreconf