From 9cefbacc8da1b1ac9e8c32fb186c94b4e98544a7 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Sat, 3 Sep 2016 00:07:21 +0200 Subject: [PATCH] Correct DEBUG env check --- src/lib/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/debug.c b/src/lib/debug.c index 8a06a4ea1d69..2f672188c208 100644 --- a/src/lib/debug.c +++ b/src/lib/debug.c @@ -956,9 +956,9 @@ int fr_fault_setup(char const *cmd, char const *program) * signal handlers are installed or not. */ env = getenv("DEBUG"); - if (!env || (strcmp(env, "no") == 0)) { + if (!env || (strcmp(env, "yes") == 0)) { debug_state = DEBUG_STATE_NOT_ATTACHED; - } else if (!strcmp(env, "auto") || !strcmp(env, "yes")) { + } else if (strcmp(env, "auto") == 0) { /* * Figure out if we were started under a debugger */