diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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")) { |