summaryrefslogtreecommitdiff
path: root/local.c
diff options
context:
space:
mode:
Diffstat (limited to 'local.c')
-rw-r--r--local.c6
1 files changed, 3 insertions, 3 deletions
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);