I attempted to send this to Brian Caswell <[email protected]> but it
bounced.

I noticed that ircd was crashing on me sometimes when a user disconnects.
I traced it down to the time_t bump to 64 bits. Below is a patch. There
may be other time_t issues but I haven't had a chance to look yet.

$ cat patch-ircd_s_misc_c

--- ircd/s_misc.c.org   Sat May 16 21:07:55 2015
+++ ircd/s_misc.c       Sat May 16 21:09:57 2015
@@ -385,10 +385,10 @@
                        on_for = timeofday - sptr->firsttime + 1;
 # if defined(USE_SYSLOG) && defined(SYSLOG_USERS)
                        syslog(LOG_NOTICE,
-                              "%s (%3d:%02d:%02d): %s@%s [%s] %c\n",
+                              "%s (%3lld:%02lld:%02lld): %s@%s [%s] %c\n",
                               myctime(sptr->firsttime),
-                              on_for / 3600, (on_for % 3600)/60,
-                              on_for % 60,
+                              (long long)on_for / 3600, ((long long)on_for % 
3600)/60,
+                              (long long)on_for % 60,
                               sptr->user->username, sptr->user->host,
                               sptr->auth, sptr->exitc);
 # endif

Reply via email to