From: Kern Sibbald Date: Wed, 18 Jan 2012 12:33:21 +0000 (+0100) Subject: Fix bug #1822 Schedule run line parsing fails if value is keyword X-Git-Tag: Release-7.0.0~325 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d4be1e46a8e1e176ee5d65365b1a1d955b26d5e;p=bacula%2Fbacula Fix bug #1822 Schedule run line parsing fails if value is keyword --- diff --git a/bacula/src/dird/run_conf.c b/bacula/src/dird/run_conf.c index 69f80d3c34..8aad42da37 100644 --- a/bacula/src/dird/run_conf.c +++ b/bacula/src/dird/run_conf.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2011 Free Software Foundation Europe e.V. + Copyright (C) 2000-2012 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -201,7 +201,7 @@ void store_run(LEX *lc, RES_ITEM *item, int index, int pass) for (found=true; found; ) { found = false; token = lex_get_token(lc, T_NAME); - for (i=0; RunFields[i].name; i++) { + for (i=0; !found && RunFields[i].name; i++) { if (strcasecmp(lc->str, RunFields[i].name) == 0) { found = true; if (lex_get_token(lc, T_ALL) != T_EQUALS) {