From: Kern Sibbald Date: Wed, 21 Nov 2012 12:38:35 +0000 (+0100) Subject: Allow conf file quoted strings to be used in a list X-Git-Tag: Release-5.2.13~65 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3610a0b0d8f3c83fffa3340da22aeef885fec898;p=bacula%2Fbacula Allow conf file quoted strings to be used in a list --- diff --git a/bacula/src/lib/lex.c b/bacula/src/lib/lex.c index cd9d7c5dae..c4c78d6ced 100644 --- a/bacula/src/lib/lex.c +++ b/bacula/src/lib/lex.c @@ -255,7 +255,6 @@ void lex_unget_char(LEX *lf) } else { lf->col_no--; /* Backup to re-read char */ } - } @@ -587,6 +586,13 @@ lex_get_token(LEX *lf, int expect) } if (ch == '"') { token = T_QUOTED_STRING; + /* + * Since we may be scanning a quoted list of names, + * we get the next character (a comma indicates another + * one), then we put it back for rescanning. + */ + lex_get_char(lf); + lex_unget_char(lf); lf->state = lex_none; break; }