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 | 2f9a03eba0da1afe25aa36aec6a76f22c5d4f346 (patch) | |
tree | 1e08a06bcfa6dfa24cfc40452160ba346ba68c0a /util/datamanager.lua | |
parent | 8f64eafaf75576c6f7d7b946df52880e3942c2b0 (diff) | |
download | prosody-2f9a03eba0da1afe25aa36aec6a76f22c5d4f346.tar.gz prosody-2f9a03eba0da1afe25aa36aec6a76f22c5d4f346.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.
Diffstat (limited to 'util/datamanager.lua')
-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 |