From: Robert Spalek Date: Sun, 23 Apr 2006 00:24:40 +0000 (+0200) Subject: conf2: another bug hunted X-Git-Tag: holmes-import~645^2~11^2~73 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9bd61ae36ed62f9bdd74799130ef468f1b5c8712;p=libucw.git conf2: another bug hunted --- diff --git a/lib/conf2.c b/lib/conf2.c index fb0a2de6..fe66610a 100644 --- a/lib/conf2.c +++ b/lib/conf2.c @@ -802,7 +802,7 @@ opening_brace(struct cf_item *item, void *ptr, enum operation op) cf_init_section(item->name, item->u.sec, stack[level].base_ptr); stack[level].list = ptr; stack[level].item = item; - stack[level].op |= op < OP_REMOVE ? OP_2ND : OP_1ST; + stack[level].op |= (op & OP_MASK) < OP_REMOVE ? OP_2ND : OP_1ST; } else return "Opening brace can only be used on sections and lists"; diff --git a/lib/conf2.t b/lib/conf2.t index 39f8b4e6..bc79381b 100644 --- a/lib/conf2.t +++ b/lib/conf2.t @@ -24,6 +24,10 @@ unknown.ignored :-) top.slaves cairns gpua 7 7 -10% +10% top.slaves daintree rafc 4 5 -171% +top.slaves coogee pum 9 8 +top.slaves {name=bondi; level=\ + "PUG"; confidence 10 10} +#top.slaves:remove topp.a=15 top.nr1= 15