diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-16 15:49:46 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-16 15:49:46 +0100 |
commit | c15f7674f082310b909e2528f6c593a095752f21 (patch) | |
tree | 1e08a06bcfa6dfa24cfc40452160ba346ba68c0a | |
parent | 81181623fd5db5762f890df5a91a23945b714969 (diff) | |
download | prosody-c15f7674f082310b909e2528f6c593a095752f21.tar.gz prosody-c15f7674f082310b909e2528f6c593a095752f21.zip |
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.
-rw-r--r-- | util/datamanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |