cudcv@warwick.ac.uk (Rob McMahon) (07/26/88)
Here's some fixes for a few minor bugs in mush: 1) Typo which would cause fortunes to fail (actually made my compiler barf). 2) Typo stopped `preserve' menu item working in mushtool. 3) mushtool could get stuck in an infinite loop of twisty little signal handlers. Feed this to patch. RCS file: mail.c,v retrieving revision 2.0 diff -c -r2.0 mail.c *** /tmp/,RCSt1a17328 Mon Jul 25 22:38:53 1988 --- mail.c Mon Jul 25 17:18:36 1988 *************** *** 1047,1053 **** /* Sign the letter before adding the Bcc list since they aren't * considered when adding a signature. */ ! if ((ison(flags, SIGN) || ison(flags, FORTUNE)) && isoff(glob_flags, REDIRECT) && isoff(flags, FORWARD)) sign_letter(addr_list); --- 1047,1053 ---- /* Sign the letter before adding the Bcc list since they aren't * considered when adding a signature. */ ! if ((ison(flags, SIGN) || ison(flags, DO_FORTUNE)) && isoff(glob_flags, REDIRECT) && isoff(flags, FORWARD)) sign_letter(addr_list); =================================================================== RCS file: select.c,v retrieving revision 2.0 diff -c -r2.0 select.c *** /tmp/,RCSt1a17328 Mon Jul 25 22:39:02 1988 --- select.c Mon Jul 25 12:03:58 1988 *************** *** 373,379 **** print_more("sent to printer"); (void) strcpy(buf, "lpr"); } else if (action == PRE_MSG) ! print_more("%sd", strcpy(buf, "preseve")); (void) sprintf(&buf[strlen(buf)], " %d", message+1); if (message == current_msg && action == DEL_MSG) do_clear(); --- 373,379 ---- print_more("sent to printer"); (void) strcpy(buf, "lpr"); } else if (action == PRE_MSG) ! print_more("%sd", strcpy(buf, "preserve")); (void) sprintf(&buf[strlen(buf)], " %d", message+1); if (message == current_msg && action == DEL_MSG) do_clear(); =================================================================== RCS file: signals.c,v retrieving revision 2.0 diff -c -r2.0 signals.c *** /tmp/,RCSt1a17328 Mon Jul 25 22:39:04 1988 --- signals.c Mon Jul 25 12:04:58 1988 *************** *** 217,223 **** error(tempfile); #ifdef SUNTOOL if (istool && tool) ! tool_destroy(tool); #endif /* SUNTOOL */ if (sig == SIGSEGV || sig == SIGBUS) { if (isoff(glob_flags, IGN_SIGS)) { --- 217,223 ---- error(tempfile); #ifdef SUNTOOL if (istool && tool) ! istool = FALSE, tool_destroy(tool); #endif /* SUNTOOL */ if (sig == SIGSEGV || sig == SIGBUS) { if (isoff(glob_flags, IGN_SIGS)) { -- UUCP: ...!mcvax!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick ARPA: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England