mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 22:27:38 +03:00
mod_posix: Set umask to 'umask' from the config, or 027
This commit is contained in:
parent
1e1d8f62ac
commit
df44b24491
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue