# HG changeset patch # User Matthew Wild # Date 1779711783 -3600 # Node ID 604bed81808ee86b6092dffd31e161726d06a9fd # Parent 44e5c73e6fa31fae1b7a0adf5319b9ac978d2cbf util.datamanager: Fix listing of host stores lfs returns the basename of the directory entry, and the check neglected to prefix the data path directory before calling lfs.attribute(), which resulted in checking Prosody's current working directory for the file instead. diff -r 44e5c73e6fa3 -r 604bed81808e util/datamanager.lua --- a/util/datamanager.lua Mon May 25 13:14:53 2026 +0100 +++ b/util/datamanager.lua Mon May 25 13:23:03 2026 +0100 @@ -668,7 +668,7 @@ if lfs.attributes(getpath(username, host, store_name, typ), "mode") then return store_name; end - elseif lfs.attributes(node, "mode") == "file" then + elseif lfs.attributes(store_dir..node, "mode") == "file" then local file, ext = node:match("^(.*)%.([dalist]+)$"); if ext == typ then return decode(file)