diff --git a/ChangeLog b/ChangeLog index 28beace7..b21060da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4138,6 +4138,9 @@ v0.33.18 27-Jul-2001 mbcico: Renamed sendfile function in zmsend.c to sendzfile to prevent a conflict with an excisting library call on FreeBSD. + Removed some debug logmessages. + The filerquest response message doesn't use the tmpnam function + anymore, this was the last one of the unsafe tmpnam calls. mball: Removed some compiler warnings on some systems. diff --git a/mbcico/answer.c b/mbcico/answer.c index aa38add3..9166990b 100644 --- a/mbcico/answer.c +++ b/mbcico/answer.c @@ -2,7 +2,7 @@ * * File ..................: mbcico/answer.c * Purpose ...............: Fidonet mailer - * Last modification date : 08-Jun-2001 + * Last modification date : 04-Oct-2001 * ***************************************************************************** * Copyright (C) 1997-2001 @@ -146,7 +146,6 @@ int answer(char *stype) if ((fp = fopen(p, "a")) == NULL) WriteError("$Can't open %s", p); else { - Syslog('s', "answer() write history"); fwrite(&history, sizeof(history), 1, fp); fclose(fp); } diff --git a/mbcico/binkp.c b/mbcico/binkp.c index c6edbe25..e0d060b8 100644 --- a/mbcico/binkp.c +++ b/mbcico/binkp.c @@ -2,7 +2,7 @@ * * File ....................: mbcico/binkp.c * Purpose .................: Fidonet binkd protocol - * Last modification date ..: 07-Aug-2001 + * Last modification date ..: 04-Oct-2001 * Binkp protocol copyright : Dima Maloff. * ***************************************************************************** @@ -1043,8 +1043,8 @@ int binkp_batch(file_list *to_send) TxState = TxDone; binkp_send_control(MM_EOB, ""); Syslog('+', "Binkp: sending EOB"); - } else { - Syslog('b', "tmp != NULL"); +// } else { +// Syslog('b', "tmp != NULL"); } break; diff --git a/mbcico/respfreq.c b/mbcico/respfreq.c index 2d08bbd6..51be00a0 100644 --- a/mbcico/respfreq.c +++ b/mbcico/respfreq.c @@ -2,7 +2,7 @@ * * File ..................: mbcico/respfreq.c * Purpose ...............: Fidonet mailer - * Last modification date : 08-Aug-2001 + * Last modification date : 04-Oct-2001 * ***************************************************************************** * Copyright (C) 1997-2001 @@ -568,7 +568,7 @@ file_list *respmagic(char *cmd) /* must free(cmd) before exit */ static void attach_report(file_list **fl) { FILE *fp; - char tmpfn[L_tmpnam]; + char tmpfn[PATH_MAX]; char remname[14]; long zeroes = 0L; ftnmsg fmsg; @@ -592,8 +592,7 @@ static void attach_report(file_list **fl) add_report((char *)"\r--- mbcico v%s\r", VERSION); - (void)tmpnam(tmpfn); - + sprintf(tmpfn, "%s/tmp/%08lX.rpl", getenv((char *)"MBSE_ROOT"), (unsigned long)sequencer()); if ((fp = fopen(tmpfn,"w"))) { fmsg.flags = M_PVT|M_KILLSENT; fmsg.from = bestaka_s(remote->addr);