From 8b7224cfaf6961c48c018e6cfc500d577c8caaac Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 10 Apr 2012 15:55:57 +0200 Subject: Don't treat exit 10 from dynamic scripts differently from any other non-zero code. clientwr() should treat the dynamic lookup as a failure and will not be any happier to know that the exact error was that it didn't resolv. The script can do whatever logging is wanted. That said, this commit also makes the scripts exit with 10 in order to signal failure. --- radsecproxy.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'radsecproxy.c') diff --git a/radsecproxy.c b/radsecproxy.c index 5248c41..d8500c1 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2297,14 +2297,9 @@ int dynamicconfig(struct server *server) { } if (status) { - if (WEXITSTATUS(status) == 10) { - debug(DBG_INFO, "dynamicconfig: command signals empty config"); - } - else { - debug(DBG_INFO, "dynamicconfig: command exited with status %d", - WEXITSTATUS(status)); - goto errexit; - } + debug(DBG_INFO, "dynamicconfig: command exited with status %d", + WEXITSTATUS(status)); + goto errexit; } if (ok) -- cgit v1.1