summaryrefslogtreecommitdiff
path: root/sfeed_mbox.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-08-06 12:57:48 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-08-06 13:02:54 +0200
commite6f348c72809abb38667448dd6f7fcf12db432a3 (patch)
treeb47213bf4bacc7d46aa6dabed54bfa309e1b9aae /sfeed_mbox.c
parentb0dd38e9570cdf9125786639e9568ad4b5e8befa (diff)
add USE_PLEDGE, remove pledge dummy function
Diffstat (limited to 'sfeed_mbox.c')
-rw-r--r--sfeed_mbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfeed_mbox.c b/sfeed_mbox.c
index 413318f..3649422 100644
--- a/sfeed_mbox.c
+++ b/sfeed_mbox.c
@@ -123,8 +123,10 @@ main(int argc, char *argv[])
char *name;
int i;
+#ifdef USE_PLEDGE
if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1)
err(1, "pledge");
+#endif
if (!(user = getenv("USER")))
user = "you";