From c15f7674f082310b909e2528f6c593a095752f21 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 16 Jan 2021 15:49:46 +0100 Subject: util.datamanager: Fix not passing variables as format string to logger (thanks semgrep) Passing error messages as format string could lead to errors, although not a problem anymore since util.format sanitizes this. --- util/datamanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/datamanager.lua b/util/datamanager.lua index 26dede08..348831e0 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -344,7 +344,7 @@ local function stores(username, host, typ) local mode, err = lfs.attributes(store_dir, "mode"); if not mode then - return function() log("debug", err or (store_dir .. " does not exist")) end + return function() log("debug", "Could not iterate over stores in %s: %s", store_dir, err); end end local next, state = lfs.dir(store_dir); -- luacheck: ignore 431/next 431/state return function(state) -- luacheck: ignore 431/state -- cgit v1.2.3