mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
Browser: Unveil /etc/passwd so we can find our home directory if needed
Fixes #1952.
This commit is contained in:
parent
bd45b2b8d3
commit
9093625546
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ int main(int argc, char** argv)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unveil("/etc/passwd", "r") < 0) {
|
||||||
|
perror("unveil");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
unveil(nullptr, nullptr);
|
unveil(nullptr, nullptr);
|
||||||
|
|
||||||
auto m_config = Core::ConfigFile::get_for_app("Browser");
|
auto m_config = Core::ConfigFile::get_for_app("Browser");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue