From b6cf41ab77a4324b4f4cf0bc9e3d82a5fef9ebd4 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 16 Oct 2021 17:03:31 -0400 Subject: Import refactored xdg.c from pounce --- chat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chat.c') diff --git a/chat.c b/chat.c index 54e7e5e..ba6c9a1 100644 --- a/chat.c +++ b/chat.c @@ -149,8 +149,8 @@ static void sandboxEarly(bool log) { char *end = &promises[sizeof(promises)]; if (log) { - const char *logdir = dataMkdir("log"); - int error = unveil(logdir, "wc"); + char buf[PATH_MAX]; + int error = unveil(dataPath(buf, sizeof(buf), "log", 0), "wc"); if (error) err(EX_OSERR, "unveil"); ptr = seprintf(ptr, end, " wpath cpath"); } -- cgit 1.4.1