diff options
author | Andreas Kling <kling@serenityos.org> | 2020-01-21 13:08:22 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-21 13:08:22 +0100 |
commit | efbd1620d9b3b74243b11fc3d6d9cab6b9f93174 (patch) | |
tree | 51bcc29f24a9cd190952f9435cc3cf611017e96c | |
parent | 3097eb4717447f12711508b62c296484c1d6823c (diff) | |
download | serenity-efbd1620d9b3b74243b11fc3d6d9cab6b9f93174.zip |
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.
-rw-r--r-- | Applications/Terminal/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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(); |