From: Thibault Godouet 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: ver2_9_4~660 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ec38cf908caba25eef0ed8fe895e1dba74d9374;p=thirdparty%2Ffcron.git 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 != ')' )