sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 4c5e73624f488b7b20fb51b517b602c10b5ae32c
parent a40fe1970021b85d2f12b218027ee6bfd23de1e9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 21 Aug 2018 21:10:53 +0200

sfeed_frames: stricter pledge when only reading from stdin

Diffstat:
Msfeed_frames.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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\" />"