From 4c5e73624f488b7b20fb51b517b602c10b5ae32c Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 21 Aug 2018 21:10:53 +0200 Subject: sfeed_frames: stricter pledge when only reading from stdin --- sfeed_frames.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("" -- cgit v1.2.3