From 4daca7622f8d859ae727104130ac9aff850783a1 Mon Sep 17 00:00:00 2001 From: thib Date: Thu, 29 Apr 2004 19:24:59 +0000 Subject: [PATCH] fixed a log message : completed instead of terminated when a job ends up with no error --- job.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/job.c b/job.c index 25fd052..cd4dfde 100644 --- a/job.c +++ b/job.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: job.c,v 1.58 2004-01-29 10:26:49 thib Exp $ */ + /* $Id: job.c,v 1.59 2004-04-29 19:24:59 thib Exp $ */ #include "fcron.h" @@ -208,7 +208,7 @@ create_mail(cl_t *line, char *subject) /* check if mailto is a complete mail address */ for ( i = 0 ; line->cl_mailto[i] != '\0' ; i++ ) { - if ( line->cl_mailto[i] == '\@' ) { + if ( line->cl_mailto[i] == '@' ) { complete_adr = 1; break; } @@ -459,7 +459,7 @@ end_job(cl_t *line, int status, FILE *mailf, short mailpos) m = (mail_output == 1) ? " (mailing output)" : ""; if (WIFEXITED(status) && WEXITSTATUS(status) == 0) { if ( ! is_nolog(line->cl_option) ) - explain("Job %s terminated%s", line->cl_shell, m); + explain("Job %s completed%s", line->cl_shell, m); } else if (WIFEXITED(status)) { warn("Job %s terminated (exit status: %d)%s", -- 2.40.0