summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-02 04:33:00 -0400
committerJune McEnroe <june@causal.agency>2019-11-02 04:33:00 -0400
commited154774513e7f25826a8d06a2c88cfb0443c01b (patch)
treefcba66736b872ae2bc11a9aaacf74fe691a069ca
parentImplement UNIX-domain binding (diff)
downloadpounce-ed154774513e7f25826a8d06a2c88cfb0443c01b.tar.gz
pounce-ed154774513e7f25826a8d06a2c88cfb0443c01b.zip
Fix trying to cap_rights_limit a NULL saveFile
Diffstat (limited to '')
-rw-r--r--bounce.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bounce.c b/bounce.c
index a3a9693..01612e8 100644
--- a/bounce.c
+++ b/bounce.c
@@ -290,8 +290,10 @@ int main(int argc, char *argv[]) {
 	cap_rights_init(&bindRights, CAP_LISTEN, CAP_ACCEPT);
 	cap_rights_merge(&bindRights, &sockRights);
 
-	error = cap_rights_limit(fileno(saveFile), &saveRights);
-	if (error) err(EX_OSERR, "cap_rights_limit");
+	if (saveFile) {
+		error = cap_rights_limit(fileno(saveFile), &saveRights);
+		if (error) err(EX_OSERR, "cap_rights_limit");
+	}
 	splitLimit(certSplit, &fileRights);
 	splitLimit(privSplit, &fileRights);
 	for (size_t i = 0; i < binds; ++i) {
one-sentence extracts from the opensearch results. Too bad. It's not a wiki script, what we need is a command that fetches single-sentence summaries of articles on Wikipedia. 2020-02-19Add The Obelisk GateJune McEnroe 2020-02-17Add Four Tet — HandsJune McEnroe One from the cafe that caught my attention. 2020-02-12Simplify macOS notify-sendJune McEnroe 2020-02-12Add imbox and notemap to pageJune McEnroe 2020-02-12Collapse simple linksJune McEnroe 2020-02-12Move catgirl up the pageJune McEnroe 2020-02-12Update catgirl pty grabJune McEnroe 2020-02-12Link to cgit /about pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable. 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe Wow. One of the best I've read. 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe Broke out LDLIBS for each bin, and made everything more uniform. 2020-01-28Change scout sensitivity to 1.4June McEnroe idk it seems to work. 2020-01-28Import shows.txtJune McEnroe