]> jfr.im git - irc.git/blobdiff - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2000/000402.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2000 / 000402.html
diff --git a/software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2000/000402.html b/software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2000/000402.html
new file mode 100644 (file)
index 0000000..7fd7609
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+   <TITLE> [IRCServices] Re: DALnet-src: Y2K bug in the ircd (dreamforge and below)
+   </TITLE>
+   <LINK REL="Index" HREF="index.html" >
+   <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=">
+   <META NAME="robots" CONTENT="index,nofollow">
+   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+   <LINK REL="Previous"  HREF="000401.html">
+   <LINK REL="Next"  HREF="000405.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+   <H1>[IRCServices] Re: DALnet-src: Y2K bug in the ircd (dreamforge and below)</H1>
+    <B>Andrew Church</B> 
+    <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="
+       TITLE="[IRCServices] Re: DALnet-src: Y2K bug in the ircd (dreamforge and below)">achurch at dragonfire.net
+       </A><BR>
+    <I>Mon Jan  3 11:24:21 PST 2000</I>
+    <P><UL>
+        <LI>Previous message: <A HREF="000401.html">[IRCServices] DreamForge 4.6.7
+</A></li>
+        <LI>Next message: <A HREF="000405.html">[IRCServices] DreamForge 4.6.7
+</A></li>
+         <LI> <B>Messages sorted by:</B> 
+              <a href="date.html#402">[ date ]</a>
+              <a href="thread.html#402">[ thread ]</a>
+              <a href="subject.html#402">[ subject ]</a>
+              <a href="author.html#402">[ author ]</a>
+         </LI>
+       </UL>
+    <HR>  
+<!--beginarticle-->
+<PRE>&gt;&gt;<i> Well my bug is in the date() function (s_misc.c), where the reply string
+</I>&gt;&gt;<i>  is generated:
+</I>&gt;&gt;<i>  
+</I>&gt;&gt;<i>          (void)sprintf(buf, &quot;%s %s %d 19%02d -- %02d:%02d %c%02d:%02d&quot;,
+</I>&gt;&gt;<i>                  weekdays[lt-&gt;tm_wday], months[lt-&gt;tm_mon],lt-&gt;tm_mday,
+</I>&gt;&gt;<i>                  lt-&gt;tm_year, lt-&gt;tm_hour, lt-&gt;tm_min,
+</I>&gt;&gt;<i>                  plus, minswest/60, minswest%60);
+</I>&gt;&gt;<i>  
+</I>&gt;&gt;<i>  The &quot;19&quot;, for the centuary, is hardcoded.
+</I>
+&lt;rant&gt;
+     Is it just me, or is this so completely braindead it's not even funny?
+Even assuming this is left over from the original ircd, that's still
+post-1990 code, and it would have taken some major guts (or stupidity) to
+assume that that code would no longer be in use by 2000.  It doesn't even
+take any extra effort to write &quot;%04d&quot; and &quot;lt-&gt;tm_year+1900&quot; instead.
+
+     _This_ is why programming should be left to experts.
+&lt;/rant&gt;
+
+  --Andrew Church
+    <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">achurch at dragonfire.net</A>
+    <A HREF="http://achurch.dragonfire.net/">http://achurch.dragonfire.net/</A>
+---------------------------------------------------------------
+To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
+with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
+
+</PRE>
+
+<!--endarticle-->
+    <HR>
+    <P><UL>
+        <!--threads-->
+       <LI>Previous message: <A HREF="000401.html">[IRCServices] DreamForge 4.6.7
+</A></li>
+       <LI>Next message: <A HREF="000405.html">[IRCServices] DreamForge 4.6.7
+</A></li>
+         <LI> <B>Messages sorted by:</B> 
+              <a href="date.html#402">[ date ]</a>
+              <a href="thread.html#402">[ thread ]</a>
+              <a href="subject.html#402">[ subject ]</a>
+              <a href="author.html#402">[ author ]</a>
+         </LI>
+       </UL>
+
+</body></html>