Procházet zdrojové kódy

SystemMonitor: Unveil /usr/local/lib

This is necessary to symbolicate libraries installed under
/usr/local/lib.
Rodrigo Tobar před 3 roky
rodič
revize
ad33efbc8c
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      Userland/Applications/SystemMonitor/main.cpp

+ 5 - 0
Userland/Applications/SystemMonitor/main.cpp

@@ -141,6 +141,11 @@ int main(int argc, char** argv)
         return 1;
     }
 
+    if (unveil("/usr/local/lib", "r") < 0 && errno != ENOENT) {
+        perror("unveil");
+        return 1;
+    }
+
     if (unveil("/bin/Profiler", "rx") < 0) {
         perror("unveil");
         return 1;