Browse Source

WebServer: Unveil /etc/timezone for reading

Andreas Kling 3 years ago
parent
commit
f73eae1245
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Userland/Services/WebServer/main.cpp

+ 1 - 0
Userland/Services/WebServer/main.cpp

@@ -94,6 +94,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
 
     outln("Listening on {}:{}", ipv4_address.value(), port);
 
+    TRY(Core::System::unveil("/etc/timezone", "r"));
     TRY(Core::System::unveil("/res/icons", "r"));
     TRY(Core::System::unveil(real_root_path.characters(), "r"));
     TRY(Core::System::unveil(nullptr, nullptr));