diff -r d1b7fc7f844a -r 29b273d63835 jabberd/jabberd.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jabberd/jabberd.patch Sat Oct 31 19:00:00 2009 +0100 @@ -0,0 +1,183 @@ +Index: etc/c2s.xml.dist.in +--- etc/c2s.xml.dist.in.orig 2009-06-30 11:38:16 +0200 ++++ etc/c2s.xml.dist.in 2009-06-30 20:45:22 +0200 +@@ -50,18 +50,16 @@ + + + +- ++ + +- jabberd/c2s ++ + + +- local3 ++ + + +- + + + +@@ -137,7 +135,7 @@ + --> + + +- 0.0.0.0 ++ 127.0.0.1 + + +@@ -331,7 +329,7 @@ + @pkglibdir@ + + +- sqlite ++ db + + + +Index: etc/router.xml.dist.in +--- etc/router.xml.dist.in.orig 2009-06-30 11:38:16 +0200 ++++ etc/router.xml.dist.in 2009-06-30 20:45:06 +0200 +@@ -8,24 +8,22 @@ + @localstatedir@/jabberd/pid/router.pid + + +- ++ + +- jabberd/router ++ + + +- local3 ++ + + +- + + + + + +- 0.0.0.0 ++ 127.0.0.1 + + + 5347 +Index: etc/s2s.xml.dist.in +--- etc/s2s.xml.dist.in.orig 2009-06-30 11:38:16 +0200 ++++ etc/s2s.xml.dist.in 2009-06-30 20:45:06 +0200 +@@ -60,25 +60,23 @@ + + + +- ++ + +- jabberd/s2s ++ + + +- local3 ++ + + +- + + + + + +- 0.0.0.0 ++ 127.0.0.1 + 5269 + + +- ++ + +- jabberd/sm ++ + + +- local3 ++ + + + +- sqlite ++ db + + +Index: sm/mod_iq_time.c +--- sm/mod_iq_time.c.orig 2009-06-30 11:38:15 +0200 ++++ sm/mod_iq_time.c 2009-06-30 20:45:06 +0200 +@@ -39,6 +39,7 @@ + static mod_ret_t _iq_time_pkt_sm(mod_instance_t mi, pkt_t pkt) + { + time_t t; ++ time_t tzone; + struct tm *tm; + char buf[64]; + char *c; +@@ -78,7 +79,8 @@ + datetime_out(t, dt_DATETIME, buf, 64); + nad_insert_elem(pkt->nad, 2, NAD_ENS(pkt->nad, 1), "utc", buf); + #ifdef HAVE_TZSET +- snprintf(buf, 64, "%+03d:%02d", -((int)timezone)/(60*60), -((int)timezone)%(60*60)); ++ tzone = (time_t)((long)mktime(gmtime(&t)) - (long)t); ++ snprintf(buf, 64, "%+03d:%02d", (int) -tzone/(60*60), (int) -tzone%(60*60)); + #else + snprintf(buf, 64, "%+03d:%02d", (int) tm->tm_gmtoff/(60*60), (int) tm->tm_gmtoff%(60*60)); + #endif +Index: sm/mod_roster.c +--- sm/mod_roster.c.orig 2009-06-30 11:38:15 +0200 ++++ sm/mod_roster.c 2009-06-30 20:45:06 +0200 +@@ -635,6 +635,9 @@ + if(user->sessions == NULL) + return mod_PASS; + ++ /* We have to free old packet - Lemming's memory leak fix */ ++ pkt_free(pkt); ++ + /* build a new packet to push out to everyone */ + pkt = pkt_create(user->sm, "iq", "set", NULL, NULL); + pkt_id_new(pkt); +Index: util/util.h +--- util/util.h.orig 2009-06-30 11:38:16 +0200 ++++ util/util.h 2009-06-30 20:45:06 +0200 +@@ -30,6 +30,8 @@ + #include + #include + #include ++#include ++#include + + #include +