From efbd1620d9b3b74243b11fc3d6d9cab6b9f93174 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 21 Jan 2020 13:08:22 +0100 Subject: [PATCH] Terminal: Unveil the user's config file I mistakenly thought that we were keeping the config file open, but we don't. So we'll need to unveil the config path in case we need to write out a new configuration. --- Applications/Terminal/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index c7225538f8..d8d18d064f 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -300,6 +300,11 @@ int main(int argc, char** argv) return 1; } + if (unveil(config->file_name().characters(), "rwc")) { + perror("unveil"); + return 1; + } + unveil(nullptr, nullptr); config->sync();