summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-11-28 20:39:17 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-11-28 20:39:17 +0100
commitfb7bced887df1ec42d447e02b462b8ae43dc7f50 (patch)
treebce2b5ff513ec2d7d9870f4743c8ea3897cbf821
parentdd65bd7e7d1e8e7f9f0ca517cecaec3bcceae375 (diff)
dynamic accesslist fifo now created 0600 and only errors out if the fifo didn't already exist
-rw-r--r--src/ot_accesslist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ot_accesslist.c b/src/ot_accesslist.c
index fdf631e..5d4f059 100644
--- a/src/ot_accesslist.c
+++ b/src/ot_accesslist.c
@@ -281,8 +281,7 @@ static void *accesslist_adddel_worker(const char *fifoname, ot_accesslist *_
281 return NULL; 281 return NULL;
282 } 282 }
283 } else { 283 } else {
284 int error = mkfifo(fifoname, 0755); 284 if (mkfifo(fifoname, 0600) && errno != EEXIST) {
285 if (error && error != EEXIST) {
286 fprintf(stderr, "Error when starting dynamic accesslists: Couldn't create FIFO at %s, error: %s\n", fifoname, strerror(errno)); 285 fprintf(stderr, "Error when starting dynamic accesslists: Couldn't create FIFO at %s, error: %s\n", fifoname, strerror(errno));
287 return NULL; 286 return NULL;
288 } 287 }