]> granicus.if.org Git - fcron/commitdiff
fixed a log message : completed instead of terminated when a job ends up with no...
authorthib <thib>
Thu, 29 Apr 2004 19:24:59 +0000 (19:24 +0000)
committerthib <thib>
Thu, 29 Apr 2004 19:24:59 +0000 (19:24 +0000)
job.c

diff --git a/job.c b/job.c
index 25fd052ce3c7111e8befb92d266cf9160368cbd0..cd4dfde7ec29205cbad64c7a40fbf26ba2155b1b 100644 (file)
--- 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",