summaryrefslogtreecommitdiff
path: root/src/validator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/validator.c')
-rw-r--r--src/validator.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/validator.c b/src/validator.c
index 104369d..151d507 100644
--- a/src/validator.c
+++ b/src/validator.c
@@ -28,6 +28,10 @@
#include <locale.h>
+#ifdef HAVE_PLEDGE
+#include <unistd.h>
+#endif
+
#include "validate.h"
static gboolean warn_kde = FALSE;
@@ -51,6 +55,13 @@ main (int argc, char *argv[])
int i;
gboolean all_valid;
+#ifdef HAVE_PLEDGE
+ if (pledge ("stdio rpath", NULL) == -1) {
+ g_printerr ("pledge\n");
+ return 1;
+ }
+#endif
+
setlocale (LC_ALL, "");
context = g_option_context_new (NULL);