Software /
code /
prosody
Changeset
8116:76ac8b617402
mod_posix: Use typed config API
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Apr 2017 16:41:44 +0200 |
parents | 8115:375cf924fce1 |
children | 8117:66d8f6b3c3ef |
files | plugins/mod_posix.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_posix.lua Fri Apr 21 16:42:25 2017 +0100 +++ b/plugins/mod_posix.lua Sat Apr 22 16:41:44 2017 +0200 @@ -57,7 +57,7 @@ if not prosody.start_time then -- server-starting local suid = module:get_option("setuid"); if not suid or suid == 0 or suid == "root" then - if pposix.getuid() == 0 and not module:get_option("run_as_root") then + if pposix.getuid() == 0 and not module:get_option_boolean("run_as_root") then module:log("error", "Danger, Will Robinson! Prosody doesn't need to be run as root, so don't do it!"); module:log("error", "For more information on running Prosody as root, see http://prosody.im/doc/root"); prosody.shutdown("Refusing to run as root");