commit f8e22a3f57c945d4277653c80e2e8c540ec65528
parent f9f75f357e6f722d98f39f88968cb13589bd99f3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 28 Feb 2016 15:11:43 +0100
sfeed_tail: fix pledge when opening files
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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))))