From 9bd61ae36ed62f9bdd74799130ef468f1b5c8712 Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Sun, 23 Apr 2006 02:24:40 +0200 Subject: [PATCH] conf2: another bug hunted --- lib/conf2.c | 2 +- lib/conf2.t | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2