]> jfr.im git - irc.git/blame - software/RELEASES/ircservices/achurch.org/services/lists/ircservices/2000/000399.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices / 2000 / 000399.html
CommitLineData
3bd189cb
JR
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2<HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Re: DALnet-src: Y2K bug in the ircd (dreamforge and below)
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Re%3A%20DALnet-src%3A%20Y2K%20bug%20in%20the%20ircd%20%28dreamforge%20and%20below%29&In-Reply-To=">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="000398.html">
11 <LINK REL="Next" HREF="000400.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] Re: DALnet-src: Y2K bug in the ircd (dreamforge and below)</H1>
15 <B>BeenJaminG at aol.com</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Re%3A%20DALnet-src%3A%20Y2K%20bug%20in%20the%20ircd%20%28dreamforge%20and%20below%29&In-Reply-To="
17 TITLE="[IRCServices] Re: DALnet-src: Y2K bug in the ircd (dreamforge and below)">BeenJaminG at aol.com
18 </A><BR>
19 <I>Sun Jan 2 10:56:42 PST 2000</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000398.html">[IRCServices] US Mirror
22</A></li>
23 <LI>Next message: <A HREF="000400.html">[IRCServices] DreamForge 4.6.7
24</A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#399">[ date ]</a>
27 <a href="thread.html#399">[ thread ]</a>
28 <a href="subject.html#399">[ subject ]</a>
29 <a href="author.html#399">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33<!--beginarticle-->
34<PRE>In a message dated 1/2/00 9:46:16 AM Eastern Standard Time,
35<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">andrewk at icon.co.za</A> writes:
36
37&gt;<i> Well my bug is in the date() function (s_misc.c), where the reply string
38</I>&gt;<i> is generated:
39</I>&gt;<i>
40</I>&gt;<i> (void)sprintf(buf, &quot;%s %s %d 19%02d -- %02d:%02d %c%02d:%02d&quot;,
41</I>&gt;<i> weekdays[lt-&gt;tm_wday], months[lt-&gt;tm_mon],lt-&gt;tm_mday,
42</I>&gt;<i> lt-&gt;tm_year, lt-&gt;tm_hour, lt-&gt;tm_min,
43</I>&gt;<i> plus, minswest/60, minswest%60);
44</I>&gt;<i>
45</I>&gt;<i> The &quot;19&quot;, for the centuary, is hardcoded.
46</I>&gt;<i>
47</I>&gt;<i> After a very brief check, it looks like date() is only used by m_time().
48</I>&gt;<i>
49</I>&gt;<i> Andrew
50</I>
51 (void)sprintf(buf, &quot;%s %s %d %04d -- %02d:%02d %c%02d:%02d&quot;,
52 weekdays[lt-&gt;tm_wday], months[lt-&gt;tm_mon],lt-&gt;tm_mday,
53 lt-&gt;tm_year + 1900 , lt-&gt;tm_hour, lt-&gt;tm_min,
54 plus, minswest/60, minswest%60);
55
56I simply took out the 19 and changed the formatting to %04d, then added
571900 to the year. I'm guessing this is going to affect a lot of people using
58services who are using dalnet-compatable ircds. I wrote a little patch
59yesterday for some server admins who wanted to fix the bug without
60messing in their source code.
61You can find it and instructions on applying it at
62<A HREF="http://www.mystical.net/~services/ircd/">http://www.mystical.net/~services/ircd/</A>
63
64-- bstu
65---------------------------------------------------------------
66To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
67with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
68
69</PRE>
70
71<!--endarticle-->
72 <HR>
73 <P><UL>
74 <!--threads-->
75 <LI>Previous message: <A HREF="000398.html">[IRCServices] US Mirror
76</A></li>
77 <LI>Next message: <A HREF="000400.html">[IRCServices] DreamForge 4.6.7
78</A></li>
79 <LI> <B>Messages sorted by:</B>
80 <a href="date.html#399">[ date ]</a>
81 <a href="thread.html#399">[ thread ]</a>
82 <a href="subject.html#399">[ subject ]</a>
83 <a href="author.html#399">[ author ]</a>
84 </LI>
85 </UL>
86
87</body></html>