sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

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