Software /
code /
prosody
Changeset
11533:f97592336399
core.certmanager: Join paths with OS-aware util.paths function
Right thing to do, rather than hardcoding '/'
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 05 May 2021 15:54:05 +0200 |
parents | 11532:c0c859425c22 |
children | 11534:1cef62ca3e03 |
files | core/certmanager.lua |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/certmanager.lua Sat Apr 10 14:45:40 2021 +0200 +++ b/core/certmanager.lua Wed May 05 15:54:05 2021 +0200 @@ -37,7 +37,8 @@ local next = next; local prosody = prosody; -local resolve_path = require"util.paths".resolve_relative_path; +local pathutil = require"util.paths"; +local resolve_path = pathutil.resolve_relative_path; local config_path = prosody.paths.config or "."; local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); @@ -103,7 +104,7 @@ if depth_limit <= 0 then return files_by_name; end for file in lfs.dir(dir) do - local full = dir.."/"..file + local full = pathutil.join(dir, file); if lfs.attributes(full, "mode") == "directory" then if file:sub(1,1) ~= "." then index_certs(full, files_by_name, depth_limit-1);