Comparison

plugins/mod_posix.lua @ 4623:403b56b78018

mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global()
author Kim Alvefur <zash@zash.se>
date Thu, 15 Mar 2012 14:47:46 +0100
parent 3555:6938b6153890
child 4797:e239668aa6d2
comparison
equal deleted inserted replaced
4622:9eccb5a27989 4623:403b56b78018
20 local lfs = require "lfs"; 20 local lfs = require "lfs";
21 local stat = lfs.attributes; 21 local stat = lfs.attributes;
22 22
23 local prosody = _G.prosody; 23 local prosody = _G.prosody;
24 24
25 module.host = "*"; -- we're a global module 25 module:set_global(); -- we're a global module
26 26
27 local umask = module:get_option("umask") or "027"; 27 local umask = module:get_option("umask") or "027";
28 pposix.umask(umask); 28 pposix.umask(umask);
29 29
30 -- Allow switching away from root, some people like strange ports. 30 -- Allow switching away from root, some people like strange ports.