[195] in bug-owl
logging allfile fix
daemon@ATHENA.MIT.EDU (shadow@andrew.cmu.edu)
Mon Jun 23 15:56:00 2003
From: shadow@andrew.cmu.edu
Date: Mon, 23 Jun 2003 15:55:55 -0400
To: bug-owl@mit.edu
Message-ID: <3EF75B4B.mailEB01R7ZRQ@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:53:30
@@ -220,11 +220,12 @@
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)) {
owl_free(tmp);