Mercurial > prosody-hg
comparison plugins/mod_posix.lua @ 4684:dc70c4ffb66d
Merge timber->trunk - thanks everyone!
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 24 Apr 2012 21:59:20 +0100 |
| parents | 403b56b78018 |
| children | e239668aa6d2 |
comparison
equal
deleted
inserted
replaced
| 4529:12621337471f | 4684:dc70c4ffb66d |
|---|---|
| 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. |
