hypermail not handling files from stdin properly

---------

From: Kevin Mulholland (kevin.mulholland@siemens.co.uk)
Date: Thu Sep 09 1999 - 07:30:20 CDT


it seems to crash on fclose(fp) in parsemail parse.c, this seems to be
because it is trying to close STDIN and crashing before getting a chance
to remove the lockfile, subsequent use of hypermail must wait until the
lockfile is 1 hour old.

my patch fixes this

the patch is against v2 alpha 2.4 with the 2a24 patch applied

-- 
Kevin Mulholland (kpm)
Phone internal x5464, external +44 161 688 3464
kevin.mulholland@siemens.co.uk

--- src/parse.c Thu Sep 9 13:07:42 1999
+++ /home/kevin/hypermail-2a24/src/parse.c Wed Sep 8 15:10:10 1999
@@ -2048,12 +2048,8 @@
 #if 0
   printf("\b\b\b\b%4d %s.\n", num, lang[MSG_ARTICLES]);
 #endif
-
- /* kpm - this is to prevent the closing of std and hypermail crashing
- * if the input is from stdin
- */
- if( fp != stdin)
- fclose(fp);
+
+ fclose(fp);
 
   crossindex();
   threadlist = NULL;


---------

This archive was generated by hypermail 2.1.5.