aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-02-21 10:34:56 +0100
committerKim Alvefur <zash@zash.se>2015-02-21 10:34:56 +0100
commit71cee64f08c1c0f36a0c073894192b3ede52dfcb (patch)
treebca3c04192429bf6272572d8178b1588c3d7477d /util
parent7c0ead1c91558b669c73affb1e7ef92900c92444 (diff)
parent1c33e777ecf981e5982804317b543510de318eb3 (diff)
downloadprosody-71cee64f08c1c0f36a0c073894192b3ede52dfcb.tar.gz
prosody-71cee64f08c1c0f36a0c073894192b3ede52dfcb.zip
Merge 0.9->0.10
Diffstat (limited to 'util')
-rw-r--r--util/datamanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 4a4d62b3..b82349f1 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -163,7 +163,7 @@ local function atomic_store(filename, data)
return nil, msg;
end
-if prosody.platform ~= "posix" then
+if prosody and prosody.platform ~= "posix" then
-- os.rename does not overwrite existing files on Windows
-- TODO We could use Transactional NTFS on Vista and above
function atomic_store(filename, data)