Comparison

plugins/mod_posix.lua @ 7735:1502ec4f3cbe

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 21 Nov 2016 02:40:47 +0100
parent 7359:a5a080c12c96
parent 7731:a0ee83c4a82c
child 7999:980606856882
comparison
equal deleted inserted replaced
7727:0011889c928f 7735:1502ec4f3cbe
24 24
25 local prosody = _G.prosody; 25 local prosody = _G.prosody;
26 26
27 module:set_global(); -- we're a global module 27 module:set_global(); -- we're a global module
28 28
29 local umask = module:get_option("umask") or "027"; 29 local umask = module:get_option_string("umask", "027");
30 pposix.umask(umask); 30 pposix.umask(umask);
31 31
32 -- Allow switching away from root, some people like strange ports. 32 -- Allow switching away from root, some people like strange ports.
33 module:hook("server-started", function () 33 module:hook("server-started", function ()
34 local uid = module:get_option("setuid"); 34 local uid = module:get_option("setuid");