Comparison

prosodyctl @ 3481:72d3c8029178

util.pposix: Add pposix.uname(), bump version
author Matthew Wild <mwild1@gmail.com>
date Tue, 31 Aug 2010 15:14:39 +0100
parent 3471:482275e38224
child 3627:9e62937c9757
comparison
equal deleted inserted replaced
3480:97831dfe7f72 3481:72d3c8029178
77 require "util.datamanager".set_data_path(data_path); 77 require "util.datamanager".set_data_path(data_path);
78 78
79 -- Switch away from root and into the prosody user -- 79 -- Switch away from root and into the prosody user --
80 local switched_user, current_uid; 80 local switched_user, current_uid;
81 81
82 local want_pposix_version = "0.3.4"; 82 local want_pposix_version = "0.3.5";
83 local ok, pposix = pcall(require, "util.pposix"); 83 local ok, pposix = pcall(require, "util.pposix");
84 84
85 if ok and pposix then 85 if ok and pposix then
86 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 86 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
87 current_uid = pposix.getuid(); 87 current_uid = pposix.getuid();