From 3d4be1e46a8e1e176ee5d65365b1a1d955b26d5e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 18 Jan 2012 13:33:21 +0100 Subject: [PATCH] Fix bug #1822 Schedule run line parsing fails if value is keyword --- bacula/src/dird/run_conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5