summaryrefslogtreecommitdiff
path: root/Ports/thesilversearcher/patches/0001-pledge-thread.patch
blob: e4c0ea52bab584038785cf4b549d3ccd9ee9854c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
diff -u -r a/src/main.c b/src/main.c
--- a/src/main.c	2018-08-07 02:43:51.000000000 -0400
+++ b/src/main.c	2022-05-14 12:06:48.000000000 -0400
@@ -44,7 +44,7 @@
     int num_cores;
 
 #ifdef HAVE_PLEDGE
-    if (pledge("stdio rpath proc exec", NULL) == -1) {
+    if (pledge("stdio rpath proc exec thread", NULL) == -1) {
         die("pledge: %s", strerror(errno));
     }
 #endif
@@ -177,7 +177,7 @@
         }
 
 #ifdef HAVE_PLEDGE
-        if (pledge("stdio rpath", NULL) == -1) {
+        if (pledge("stdio rpath thread", NULL) == -1) {
             die("pledge: %s", strerror(errno));
         }
 #endif
diff -u -r a/src/options.c b/src/options.c
--- a/src/options.c	2018-08-07 02:43:51.000000000 -0400
+++ b/src/options.c	2022-05-14 12:09:45.000000000 -0400
@@ -642,7 +642,7 @@
 
 #ifdef HAVE_PLEDGE
     if (opts.skip_vcs_ignores) {
-        if (pledge("stdio rpath proc", NULL) == -1) {
+        if (pledge("stdio rpath proc thread", NULL) == -1) {
             die("pledge: %s", strerror(errno));
         }
     }
@@ -717,7 +717,7 @@
     }
 
 #ifdef HAVE_PLEDGE
-    if (pledge("stdio rpath proc", NULL) == -1) {
+    if (pledge("stdio rpath proc thread", NULL) == -1) {
         die("pledge: %s", strerror(errno));
     }
 #endif