tweak pledge - bmf - bmf (Bayesian Mail Filter) 0.9.4 fork + patches
(HTM) git clone git://git.codemadness.org/bmf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit bd5dd52e982fcb2c07eddb303e585a6e9b738508
(DIR) parent 30cf7b5fcb8028582d3c746e9c72289be77c3f87
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 22 Sep 2018 18:27:17 +0200
tweak pledge
Diffstat:
M bmf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/bmf.c b/bmf.c
@@ -92,7 +92,7 @@ int main( int argc, char** argv )
int fd = STDIN_FILENO;
- if (pledge("stdio rpath wpath cpath tmppath", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath flock", NULL) == -1)
err(1, "pledge");
srand(time(NULL));
@@ -147,7 +147,7 @@ int main( int argc, char** argv )
break;
case 't':
mode = mode_test;
- if (pledge("stdio rpath", NULL) == -1)
+ if (pledge("stdio rpath cpath flock", NULL) == -1)
err(1, "pledge");
break;
case 'v':