BABYL OPTIONS: -*- rmail -*-
Version: 5
Labels:
Note:   This is the header of an rmail file.
Note:   If you are seeing it in rmail,
Note:    it means the file has no messages in it.

0, unseen,,
*** EOOH ***
Received: from SOUTH-STATION-ANNEX.MIT.EDU by po9.MIT.EDU (5.61/4.7) id AA28955; Sun, 6 Dec 98 00:11:13 EST
Received: from ANDREW.CMU.EDU by MIT.EDU with SMTP
	id AA09229; Sun, 6 Dec 98 00:10:59 EST
Received: (from postman@localhost) by andrew.cmu.edu (8.8.5/8.8.2) id AAA01883; Sun, 6 Dec 1998 00:11:08 -0500 (EST)
Received: via switchmail; Sun,  6 Dec 1998 00:11:08 -0500 (EST)
Received: from po8.andrew.cmu.edu via qmail
          ID </afs/andrew.cmu.edu/service/mailqs/sq2/QF.8qOUy1y00Udg01CUI0>;
          Sun,  6 Dec 1998 00:00:50 -0500 (EST)
Received: from po4.andrew.cmu.edu via qmail
          ID </afs/andrew.cmu.edu/service/mailqs/q007/QF.oqOUvTS00Udc0kl040>;
          Sat,  5 Dec 1998 23:58:07 -0500 (EST)
Received: from bob.west.spy.net (bob.west.spy.net [170.1.69.195]) by po4.andrew.cmu.edu (8.8.5/8.8.2) with ESMTP id XAA12477 for <info-cyrus@andrew.cmu.edu>; Sat, 5 Dec 1998 23:58:03 -0500 (EST)
Received: from dhcp-199.west.spy.net (dhcp-199.west.spy.net [170.1.69.199])
	by bob.west.spy.net (8.9.1/8.9.1) with SMTP id UAA20028
	for <info-cyrus@andrew.cmu.edu>; Sat, 5 Dec 1998 20:58:02 -0800 (PST)
Date: Sat, 5 Dec 1998 20:58:00 -0800 (PST)
From: dustin sallings <dustin@spy.net>
X-Sender: dustin@dhcp-199.west.spy.net
To: info-cyrus@andrew.cmu.edu
Subject: nasty bug in 1.5.19...
Message-Id: <Pine.NEB.4.02.9812052048060.13948-100000@dhcp-199.west.spy.net>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Lines: 44
Xref: pintail.lcs.mit.edu mail.in:4282


	Someone ifdef'd out a little too much code in imapd.c, so that
when you try to start it up, it looks up shutdownfilename, but it's
ifdef'd out with an #if 0.  It caused my server upgrade to fail pretty
hard when it tried to open a file whose name was in an unitialized
variable.  Here's a patch to imap/imapd.c:

Index: imapd.c
===================================================================
RCS file: /usr/src2/CVS/hacks/cyrus-imapd/imap/imapd.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 imapd.c
*** /tmp/T0a19992       Sat Dec  5 20:54:44 1998
--- imapd.c     Sat Dec  5 20:42:20 1998
***************
*** 315,323 ****
      char *p;
      const char *err;
  
  #if 0
      /* why do this check twice? */
-     sprintf(shutdownfilename, "%s/msg/shutdown", config_dir);
      if ((fd = open(shutdownfilename, O_RDONLY, 0)) != -1) {
        shutdown_file(fd);
      }
--- 315,324 ----
      char *p;
      const char *err;
  
+     sprintf(shutdownfilename, "%s/msg/shutdown", config_dir);
+ 
  #if 0
      /* why do this check twice? */
      if ((fd = open(shutdownfilename, O_RDONLY, 0)) != -1) {
        shutdown_file(fd);
      }


--
SA, beyond.com                            The world is watching America,
pub  1024/3CAE01D5 1994/11/03 Dustin Sallings <dustin@spy.net>
|    Key fingerprint =  87 02 57 08 02 D0 DA D6  C8 0F 3E 65 51 98 D8 BE 
L________________________________________ and America is watching TV. __

