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.
weechat-hashes
Klemens Nanni 2021-06-12 23:38:37 +00:00 committed by C. McEnroe
parent 2dcadaf260
commit 788eb772c8
1 changed files with 1 additions and 1 deletions

2
chat.c
View File

@ -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);
}
}