commit:     fe81ef4377aa0b33ef90f0528de206cc413683c7
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 11 08:04:46 2018 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Aug 11 08:04:46 2018 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=fe81ef43

net-vpn/ipsec-tools: remove GLOB_TILDE

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../files/ipsec-tools-remove_GLOB_TILDE.patch      | 24 ++++++++++++++++++++++
 net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild    |  1 +
 2 files changed, 25 insertions(+)

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
 

Reply via email to