From 13c45b3140e83062152db9729b1a10ff0dcaf84b Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Sun, 23 Apr 2006 15:04:20 +0200 Subject: [PATCH] conf2: sorry, fix the commit-hook messages --- lib/conf2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/conf2.c b/lib/conf2.c index c8b6d315..ec9a532f 100644 --- a/lib/conf2.c +++ b/lib/conf2.c @@ -246,8 +246,7 @@ commit_section(byte *name, struct cf_section *sec, void *ptr) for (ci=sec->cfg; ci->cls; ci++) if (ci->cls == CC_SECTION) { if (commit_section(ci->name, ci->u.sec, ptr + (addr_int_t) ci->ptr)) { - if (sec != §ions) - log(L_ERROR, "It was in section %s", name); + log(L_ERROR, "It happened in section %s", ci->name); return 1; } } else if (ci->cls == CC_LIST) { @@ -255,7 +254,7 @@ commit_section(byte *name, struct cf_section *sec, void *ptr) uns idx = 0; CLIST_WALK(n, * (clist*) (ptr + (addr_int_t) ci->ptr)) if (idx++, commit_section(ci->name, ci->u.sec, n)) { - log(L_ERROR, "It was in the node #%d of list %s", idx, name); + log(L_ERROR, "It happened in node #%d of list %s", idx, ci->name); return 1; } } -- 2.39.2