[196] in bug-owl
revised logging allfile fix
daemon@ATHENA.MIT.EDU (shadow@andrew.cmu.edu)
Mon Jun 23 16:00:38 2003
From: shadow@andrew.cmu.edu
Date: Mon, 23 Jun 2003 16:00:33 -0400
To: bug-owl@mit.edu
Message-ID: <3EF75C61.mailEBI18XQEP@johnstown.andrew.cmu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Index: logging.c
===================================================================
RCS file: /afs/athena.mit.edu/astaff/project/ktools/src/owl/repository/owl/logging.c,v
retrieving revision 1.7
diff -u -r1.7 logging.c
--- logging.c 2003/06/07 16:09:48 1.7
+++ logging.c 2003/06/23 19:58:40
@@ -218,12 +218,12 @@
fprintf(allfile, "Time: %s Host: %s\n", owl_message_get_timestr(m), owl_message_get_hostname(m));
fprintf(allfile, "From: %s <%s>\n\n", buff, tmp);
fprintf(allfile, "%s\n", owl_message_get_body(m));
- fclose(allfile);
} else {
- fprintf(file, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
- fprintf(file, "Time: %s\n\n", owl_message_get_timestr(m));
- fprintf(file, "%s\n\n", owl_message_get_body(m));
+ fprintf(allfile, "From: <%s> To: <%s>\n", owl_message_get_sender(m), owl_message_get_recipient(m));
+ fprintf(allfile, "Time: %s\n\n", owl_message_get_timestr(m));
+ fprintf(allfile, "%s\n\n", owl_message_get_body(m));
}
+ fclose(allfile);
}
if (owl_message_is_type_zephyr(m)) {