# HG changeset patch # User Kim Alvefur # Date 1665344118 -7200 # Node ID e44b868cc575d689fba278f8202853f1db7081cc # Parent bc491065c221cf7e50bd542e23ffb736b14e6579 mod_storage_appendmap: Fix keyvalue writes store_raw() takes a filename, unlike most other datamanager functions that take a series of path components, leading to this bug where it would write the hostname into a file named after the first argument (commonly a username) in the working directory. diff -r bc491065c221 -r e44b868cc575 mod_storage_appendmap/mod_storage_appendmap.lua --- a/mod_storage_appendmap/mod_storage_appendmap.lua Tue Sep 27 18:23:42 2022 +0100 +++ b/mod_storage_appendmap/mod_storage_appendmap.lua Sun Oct 09 21:35:18 2022 +0200 @@ -106,7 +106,7 @@ function keyval:set(user, keyvalues) local data = serialize_map(keyvalues); - return dm.store_raw(user, module.host, self.store, "map", data); + return dm.store_raw(dm.getpath(user, module.host, self.store, "map"), data); end -- TODO some kind of periodic compaction thing?