1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 22:48:11 +00:00

HackStudio: Remove unnecessary unveil in ShellLanguageServer

Remove unveil on / with only browse permissions. Unveil will be sealed
later when the root path of project is known.
This commit is contained in:
NonStdModel 2021-06-11 19:54:42 +02:00 committed by Ali Mohammad Pur
parent fa101d6bf6
commit c93f73c617
2 changed files with 4 additions and 5 deletions

View file

@ -47,8 +47,10 @@ int mode_server()
return 1;
}
if (unveil("/usr/include", "r") < 0)
if (unveil("/usr/include", "r") < 0) {
perror("unveil");
return 1;
}
// unveil will be sealed later, when we know the project's root path.
return event_loop.exec();

View file

@ -31,9 +31,6 @@ int main(int, char**)
perror("unveil");
return 1;
}
if (unveil("/", "b") < 0) {
perror("unveil");
return 1;
}
return event_loop.exec();
}