From cd2170b37673352903432c4851a31168a5e5e5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 4 Jul 2003 16:28:14 +0000 Subject: Search for the global configuration file. Do not make the CRLF line translation for the MDA pipe. --- local.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'local.c') diff --git a/local.c b/local.c index 24c11af..a2545bf 100644 --- a/local.c +++ b/local.c @@ -49,7 +49,7 @@ void local_init(message_t *message) if (!mda) { - fprintf(stderr, "local delivery not possible without a MDA"); + fprintf(stderr, "Local delivery not possible without a MDA\n"); exit(EX_OSFILE); } @@ -167,7 +167,7 @@ void local_init(message_t *message) if(!(mda_fp = popen(before, "w"))) { - fprintf(stderr, "MDA open failed\n"); + fprintf(stderr, "Failed to connect to MDA\n"); exit(EX_OSERR); } @@ -184,7 +184,7 @@ void local_flush(message_t *message) do { n = message_read(message, buffer, BUFSIZ); - if(fwrite(buffer, 1, n, mda_fp) != n) + if(ferror(mda_fp)) { perror(NULL); exit(EX_OSERR); -- cgit v1.2.3-2-g168b