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-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9f9d249af2c71484ef37ece1b1c26dd871401dab;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; }