--- transports/smtp/smtp.c~ Sun Nov 24 16:59:01 1996
+++ transports/smtp/smtp.c Tue Nov 26 14:08:23 1996
@@ -364,6 +364,7 @@
SS.smtpfp = NULL;
SS.pipebuf = NULL;
SS.pipecmds = NULL;
+ SS.verboselog = NULL;
for (i = 0; i < argc; ++i)
eocmdline += strlen(argv[i]) + 1;
@@ -513,7 +514,7 @@
logfp = NULL;
if (logfp)
- setvbuf(logfp, (char *)NULL, _IOLBF, 0);
+ setvbuf(logfp, NULL, _IOLBF, 0);
getnobody();
getdaemon();
@@ -614,9 +615,11 @@
}
if (dp->verbose) {
+ if (SS.verboselog)
+ fclose(SS.verboselog);
SS.verboselog = (FILE *)fopen(dp->verbose,"a");
if (SS.verboselog)
- setbuf(SS.verboselog,NULL);
+ setvbuf(SS.verboselog, NULL, _IONBF, 0);
}
if (!SS.smtpfp) {
if ((first_uid = atoi(dp->senders->misc)) < 0 ||