Software /
code /
prosody
Comparison
prosodyctl @ 2455:0b3184f3c9e4
util.pposix, mod_posix, prosodyctl: Bump pposix version to 0.3.3 for mkdir
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 12 Jan 2010 15:35:36 +0000 |
parent | 2442:94c676b585c0 |
child | 2497:810fb77b6fe6 |
comparison
equal
deleted
inserted
replaced
2454:e4818c49192d | 2455:0b3184f3c9e4 |
---|---|
66 require "util.datamanager".set_data_path(data_path); | 66 require "util.datamanager".set_data_path(data_path); |
67 | 67 |
68 -- Switch away from root and into the prosody user -- | 68 -- Switch away from root and into the prosody user -- |
69 local switched_user, current_uid; | 69 local switched_user, current_uid; |
70 | 70 |
71 local want_pposix_version = "0.3.2"; | 71 local want_pposix_version = "0.3.3"; |
72 local ok, pposix = pcall(require, "util.pposix"); | 72 local ok, pposix = pcall(require, "util.pposix"); |
73 | 73 |
74 if ok and pposix then | 74 if ok and pposix then |
75 if pposix._VERSION ~= want_pposix_version then print(string.format("Unknown version (%s) of binary pposix module, expected %s", tostring(pposix._VERSION), want_pposix_version)); return; end | 75 if pposix._VERSION ~= want_pposix_version then print(string.format("Unknown version (%s) of binary pposix module, expected %s", tostring(pposix._VERSION), want_pposix_version)); return; end |
76 current_uid = pposix.getuid(); | 76 current_uid = pposix.getuid(); |