mod_posix: Set umask to 'umask' from the config, or 027

vault/0.11
Matthew Wild 16 years ago
parent 1e1d8f62ac
commit df44b24491
  1. 3
      plugins/mod_posix.lua

@ -23,6 +23,9 @@ local prosody = _G.prosody;
module.host = "*"; -- we're a global module
local umask = module:get_option("umask") or "027";
pposix.umask(umask);
-- Allow switching away from root, some people like strange ports.
module:add_event_hook("server-started", function ()
local uid = module:get_option("setuid");

Loading…
Cancel
Save