From: Jorge Pereira Date: Tue, 3 Nov 2015 14:10:56 +0000 (-0200) Subject: if the variable DEBUG could be 'no', so need to accept 'yes' also X-Git-Tag: release_3_0_11~180^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77fd35dbd448873c10eab8fcaf35323206ed382b;p=thirdparty%2Ffreeradius-server.git if the variable DEBUG could be 'no', so need to accept 'yes' also --- diff --git a/src/lib/debug.c b/src/lib/debug.c index a56e4ec2d91..797b4b6e69d 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 */