From 1f9c93efb4f3694ebfd55433b1bc3f3853c77d14 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Tue, 4 Oct 2022 14:12:03 +0200 Subject: [PATCH] Update SystemController.lua --- os/controllers/SystemController.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/os/controllers/SystemController.lua b/os/controllers/SystemController.lua index aebd719..e51aec1 100644 --- a/os/controllers/SystemController.lua +++ b/os/controllers/SystemController.lua @@ -107,6 +107,9 @@ function SystemController:apigateway(...) --else -- std.json() end + -- preload modules + require("vfs") + -- TODO local exec_with_user_priv = function(data) local uid = ulib.uid(SESSION.user) if not ulib.setgid(uid.gid) or not ulib.setuid(uid.id) then