From: Thibault Godouet Date: Thu, 2 Nov 2000 19:13:59 +0000 (+0000) Subject: added MAXYEAR_SCHEDULE_TIME too avoid infinite loops in set_next_exe() X-Git-Tag: ver2_9_4~521 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35400cb1a97551ccb0ead3994f715f3197306ac9;p=thirdparty%2Ffcron.git added MAXYEAR_SCHEDULE_TIME too avoid infinite loops in set_next_exe() and goto_non_matching() --- diff --git a/config.h.in b/config.h.in index ca19754..15ce0d9 100644 --- a/config.h.in +++ b/config.h.in @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: config.h.in,v 1.21 2000-09-30 11:58:39 thib Exp $ */ + /* $Id: config.h.in,v 1.22 2000-11-02 19:13:59 thib Exp $ */ /* *********************************************************** */ @@ -96,6 +96,10 @@ #define LAVG_ONCE 1 /* can a job be several times in the lavg queue at * the same moment ? */ +#define MAXYEAR_SCHEDULE_TIME 10 /* a job can't be scheduled further than + * now + MAXYEAR_SCHEDULE years. This is used + * to prevent infinite loop on corrupted lines */ + /* *** system dependent *** */ #define EXIT_ERR 1 /* code returned by fcron/fcrontab on error */ #define EXIT_OK 0 /* code returned on normal exit */ @@ -128,6 +132,8 @@ #undef VERSION_QUOTED +#undef CFLAGS + /* *** paths *** */ #undef ETC #undef FCRONTABS