summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-02-28 15:11:43 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-02-28 15:11:43 +0100
commitf8e22a3f57c945d4277653c80e2e8c540ec65528 (patch)
treede7225933106b19744e42850efae744bfa2b68a3
parentf9f75f357e6f722d98f39f88968cb13589bd99f3 (diff)
sfeed_tail: fix pledge when opening files
-rw-r--r--sfeed_tail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_tail.c b/sfeed_tail.c
index ecc0278..f9944f2 100644
--- a/sfeed_tail.c
+++ b/sfeed_tail.c
@@ -82,7 +82,7 @@ main(int argc, char *argv[])
FILE *fp;
int i;
- if (pledge("stdio", NULL) == -1)
+ if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1)
err(1, "pledge");
if (!(bucket = buckets = calloc(argc, sizeof(struct bucket))))