From 95f1d1d63889068fe273149ea93c38361d08f51c Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 7 Sep 2010 20:32:56 +0530 Subject: [PATCH] It might be useful to allow empty values in cgconfig.conf, like: devices { devices.deny = ""; } I know, it sounds weird, but Ivana is preparing cgsnapshot tool, which saves current cgroups into a cgconfig.conf file, and empty values might occur there. Signed-off-by: Jan Safranek Signed-off-by: Balbir Singh --- src/lex.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lex.l b/src/lex.l index fdd2f2e1..a80327c1 100644 --- a/src/lex.l +++ b/src/lex.l @@ -33,7 +33,7 @@ int line_no = 1; "group" {return GROUP;} "namespace" {return NAMESPACE;} [a-zA-Z0-9_\-\/\.]+ {yylval.name = strdup(yytext); return ID;} -\"[^"]+\" {yylval.name = strdup(yytext+1); yylval.name[strlen(yylval.name)-1] = '\0'; return ID; } +\"[^"]*\" {yylval.name = strdup(yytext+1); yylval.name[strlen(yylval.name)-1] = '\0'; return ID; } . {return yytext[0];} %% -- 2.47.2