From 9f9d249af2c71484ef37ece1b1c26dd871401dab Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 21 Nov 2012 13:38:35 +0100 Subject: [PATCH] Allow conf file quoted strings to be used in a list --- bacula/src/lib/lex.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.39.2