From 77fd35dbd448873c10eab8fcaf35323206ed382b Mon Sep 17 00:00:00 2001 From: Jorge Pereira Date: Tue, 3 Nov 2015 12:10:56 -0200 Subject: [PATCH] if the variable DEBUG could be 'no', so need to accept 'yes' also --- src/lib/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/debug.c b/src/lib/debug.c index a56e4ec2d9..797b4b6e69 100644 --- a/src/lib/debug.c +++ b/src/lib/debug.c @@ -926,7 +926,7 @@ int fr_fault_setup(char const *cmd, char const *program) env = getenv("DEBUG"); if (!env || (strcmp(env, "no") == 0)) { debug_state = DEBUG_STATE_NOT_ATTACHED; - } else if (strcmp(env, "auto") == 0) { + } else if (!strcmp(env, "auto") || !strcmp(env, "yes")) { /* * Figure out if we were started under a debugger */ -- 2.47.2