aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index e83f615..55dd706 100644
--- a/src/main.c
+++ b/src/main.c
@@ -57,15 +57,14 @@ main(int argc, char **argv)
/* TODO: Can we test this in an OpenBSD VM? */
#if 0 && defined(__OpenBSD__)
- const char *promises =
#if GIT_GRAB
- "stdio rpath prot exec";
+ if (pledge("stdio rpath prot exec", NULL) == -1)
+ cerr(EXIT_FATAL, "pledge:");
#else
- "stdio rpath";
-#endif
if (pledge("stdio rpath", NULL) == -1)
cerr(EXIT_FATAL, "pledge:");
#endif
+#endif
setlocale(LC_ALL, "");
if (streq(nl_langinfo(CODESET), "UTF-8")) {