From: thib Date: Wed, 7 Nov 2007 09:16:40 +0000 (+0000) Subject: added option erroronlymail X-Git-Tag: ver3_0_4~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=131c4d1517772006ab464785d662c11a7ea56af0;p=fcron added option erroronlymail --- diff --git a/fileconf.c b/fileconf.c index 8c0fd0f..5ed2e7e 100644 --- a/fileconf.c +++ b/fileconf.c @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fileconf.c,v 1.80 2007-04-14 18:04:15 thib Exp $ */ + /* $Id: fileconf.c,v 1.81 2007-11-07 09:16:40 thib Exp $ */ #include "fcrontab.h" @@ -782,6 +782,17 @@ read_opt(char *ptr, cl_t *cl) fprintf(stderr, " Opt : \"%s\" \"%s\"\n", opt_name, buf); } + else if( strcmp(opt_name, "erroronlymail") == 0 ) { + if ( in_brackets && (ptr = get_bool(ptr, &i)) == NULL ) + Handle_err; + if ( i == 0 ) + clear_erroronlymail(cl->cl_option); + else + set_erroronlymail(cl->cl_option); + if (debug_opt) + fprintf(stderr, " Opt : \"%s\" %d\n", opt_name, i); + } + else if( strcmp(opt_name, "dayand") == 0 ) { if ( in_brackets && (ptr = get_bool(ptr, &i)) == NULL ) Handle_err;