From 1ec38cf908caba25eef0ed8fe895e1dba74d9374 Mon Sep 17 00:00:00 2001 From: Thibault Godouet Date: Wed, 21 Jun 2000 15:00:07 +0000 Subject: [PATCH] bug fix : when an option is unknown in edit mode, need_correction = 1 --- fileconf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 != ')' ) -- 2.47.3