Software /
code /
prosody
File
util/xpcall.lua @ 13464:2dbc169aae6a
util.startup: Abort before initialization of logging when started as root
Prevents creation of log files owned by the root user which could be
inaccessible once started correctly.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 24 Mar 2024 21:32:00 +0100 |
parent | 12975:d10957394a3c |
line wrap: on
line source
local xpcall = xpcall; if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then xpcall = require"prosody.util.compat".xpcall; end return { xpcall = xpcall; };