From: thib Date: Wed, 21 Jun 2000 15:00:07 +0000 (+0000) Subject: bug fix : when an option is unknown in edit mode, need_correction = 1 X-Git-Tag: ver1564~586 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4ac5371bd9dde7d304ff9e63e7b596ccee6c821;p=fcron bug fix : when an option is unknown in edit mode, need_correction = 1 --- diff --git a/fileconf.c b/fileconf.c index 00fa328..29a8843 100644 --- a/fileconf.c +++ b/fileconf.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fileconf.c,v 1.7 2000-06-19 12:42:49 thib Exp $ */ + /* $Id: fileconf.c,v 1.8 2000-06-21 15:00:07 thib Exp $ */ #include "fcrontab.h" @@ -471,9 +471,11 @@ read_opt(char *ptr, CL *cl) if (debug_opt) fprintf(stderr, " Opt : '%s' '%s'\n", opt_name, buf); } - else + else { fprintf(stderr, "%s:%d: Option '%s' unknown: " "skipping option.\n", file_name, line, opt_name); + need_correction = 1; + } if ( in_brackets ) { if ( *ptr != ')' )