Comparison

plugins/mod_posix.lua @ 4797:e239668aa6d2

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Sun, 29 Apr 2012 02:10:55 +0100
parent 4794:25ce7720555f
parent 4623:403b56b78018
child 4993:5243b74a4cbb
comparison
equal deleted inserted replaced
4796:04a34287dc12 4797:e239668aa6d2
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.