Changeset

4797:e239668aa6d2

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Sun, 29 Apr 2012 02:10:55 +0100
parents 4796:04a34287dc12 (diff) 4792:bf107d9d4962 (current diff)
children 4799:1537bf7f9618
files net/connlisteners.lua net/httpclient_listener.lua net/httpserver.lua net/httpserver_listener.lua net/multiplex_listener.lua net/xmppclient_listener.lua net/xmppcomponent_listener.lua net/xmppserver_listener.lua plugins/mod_httpserver.lua plugins/mod_posix.lua
diffstat 3 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_posix.lua	Sat Apr 28 23:13:49 2012 +0100
+++ b/plugins/mod_posix.lua	Sun Apr 29 02:10:55 2012 +0100
@@ -112,7 +112,7 @@
 local syslog_opened;
 function syslog_sink_maker(config)
 	if not syslog_opened then
-		pposix.syslog_open("prosody");
+		pposix.syslog_open("prosody", module:get_option_string("syslog_facility"));
 		syslog_opened = true;
 	end
 	local syslog, format = pposix.syslog_log, string.format;
--- a/plugins/mod_pubsub.lua	Sat Apr 28 23:13:49 2012 +0100
+++ b/plugins/mod_pubsub.lua	Sun Apr 29 02:10:55 2012 +0100
@@ -57,6 +57,7 @@
 	for _, entry in pairs(results) do
 		data:add_child(entry);
 	end
+	local reply;
 	if data then
 		reply = st.reply(stanza)
 			:tag("pubsub", { xmlns = xmlns_pubsub })
--- a/plugins/mod_version.lua	Sat Apr 28 23:13:49 2012 +0100
+++ b/plugins/mod_version.lua	Sun Apr 29 02:10:55 2012 +0100
@@ -21,7 +21,7 @@
 		version = "Windows";
 	else
 		local os_version_command = module:get_option("os_version_command");
-		local ok pposix = pcall(require, "pposix");
+		local ok, pposix = pcall(require, "util.pposix");
 		if not os_version_command and (ok and pposix and pposix.uname) then
 			version = pposix.uname().sysname;
 		end