Introduction
Introduction Statistics Contact Development Disclaimer Help
tvote.c: remove now unnecessary platform check for pledge(2)/unveil(2) - vote -…
git clone git://src.adamsgaard.dk/vote
Log
Files
Refs
README
LICENSE
---
commit a813862768457b63444e4006b480ec4627a4cd77
parent dcdc78dcfa9f05729c646ca66f3a37e9ca074b4b
Author: Anders Damsgaard <[email protected]>
Date: Sun, 27 Sep 2020 08:09:19 +0200
vote.c: remove now unnecessary platform check for pledge(2)/unveil(2)
Diffstat:
M vote.c | 2 --
1 file changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/vote.c b/vote.c
t@@ -85,7 +85,6 @@ main()
{
struct stat sb;
-#ifdef __OpenBSD__
if (unveil(getenv("PWD"), NULL) == -1 || unveil(NULL, NULL) == -1) {
fprintf(stderr, "unveil: %s\n", strerror(errno));
die(500);
t@@ -95,7 +94,6 @@ main()
fprintf(stderr, "pledge: %s\n", strerror(errno));
die(500);
}
-#endif
if (stat(POLLS_DIR, &sb) == -1) {
if (mkdir(POLLS_DIR, 0755) == -1) {
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.