summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2018-08-21 21:10:53 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2018-08-21 21:21:03 +0200
commit4c5e73624f488b7b20fb51b517b602c10b5ae32c (patch)
tree86cbbafa52b51d38e832fe206e80ceb804b8fc5e
parenta40fe1970021b85d2f12b218027ee6bfd23de1e9 (diff)
sfeed_frames: stricter pledge when only reading from stdin
-rw-r--r--sfeed_frames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c
index 5d27195..3ecf3e2 100644
--- a/sfeed_frames.c
+++ b/sfeed_frames.c
@@ -106,7 +106,7 @@ main(int argc, char *argv[])
if (showsidebar && !(fpmenu = fopen("menu.html", "wb")))
err(1, "fopen: menu.html");
- if (pledge("stdio rpath", NULL) == -1)
+ if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1)
err(1, "pledge");
fputs("<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" />"