IRCClient: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 23:53:54 +01:00
commit 2b20e8e187
Notes: sideshowbarker 2024-07-19 10:10:01 +09:00

View file

@ -5,8 +5,18 @@
int main(int argc, char** argv)
{
if (pledge("stdio inet dns unix shared_buffer cpath rpath fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GApplication app(argc, argv);
if (pledge("stdio inet dns unix shared_buffer rpath", nullptr) < 0) {
perror("pledge");
return 1;
}
IRCAppWindow app_window;
app_window.show();