From d3479000db65f685672d7d7a2a244f1e1e46be90 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 19 Jan 1997 16:46:36 +0000 Subject: Error message correction. svn path=/trunk/; revision=789 --- driver.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 910bf9fe..0fd2b145 100644 --- a/driver.c +++ b/driver.c @@ -705,8 +705,11 @@ char *realname; /* real name of host */ strcat(errmsg, "\n"); - if (sinkfp) - fputs(errmsg, sinkfp); + /* ship out the error line */ + if (ctl->mda) + fwrite(errmsg, 1, strlen(errmsg), sinkfp); + else if (sinkfp) + SockWrite(errmsg, 1, strlen(errmsg), sinkfp); } free_str_list(&xmit_names); -- cgit v1.2.3