From 788eb772c8aa599a4e22ca594beafba4046160e4 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Sat, 12 Jun 2021 23:38:37 +0000 Subject: OpenBSD: no need to read data files (logs) One of the last changes missed this, but it is a NOOP anyway since "rpath" is not pledged any longer. --- chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chat.c') diff --git a/chat.c b/chat.c index d92240d..3f6aa71 100644 --- a/chat.c +++ b/chat.c @@ -130,7 +130,7 @@ static void parseHash(char *str) { static void unveilData(const char *name) { const char *dirs = NULL; for (const char *path; NULL != (path = dataPath(&dirs, name));) { - int error = unveil(path, "rwc"); + int error = unveil(path, "wc"); if (error && errno != ENOENT) err(EX_CANTCREAT, "%s", path); } } -- cgit 1.4.1-2-gfad0