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 <[email protected]>
---
src/lex.l | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lex.l b/src/lex.l
index fdd2f2e..a80327c 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];}
%%
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel