Blame SOURCES/bz720543-pcmk-cli_do_not_enabled_blackbox_for_cli_tools.patch

ed0026
commit 32a30ee51d3d16e4ad33c329c047030f3060afe0
ed0026
Author: Andrew Beekhof <andrew@beekhof.net>
ed0026
Date:   Thu Oct 3 21:01:38 2013 +1000
ed0026
ed0026
    Fix: cli: Do not enabled blackbox for cli tools
ed0026
    
ed0026
    (cherry picked from commit ab0f2fede2a8ddfa250a8ea5e57fea0b79348edb)
ed0026
ed0026
diff --git a/lib/common/logging.c b/lib/common/logging.c
ed0026
index 84884ac..0b85093 100644
ed0026
--- a/lib/common/logging.c
ed0026
+++ b/lib/common/logging.c
ed0026
@@ -697,7 +697,7 @@ crm_log_init(const char *entity, int level, gboolean daemon, gboolean to_stderr,
ed0026
         crm_add_logfile(logfile);
ed0026
     }
ed0026
 
ed0026
-    if (daemon_option_enabled(crm_system_name, "blackbox")) {
ed0026
+    if (crm_is_daemon && daemon_option_enabled(crm_system_name, "blackbox")) {
ed0026
         crm_enable_blackbox(0);
ed0026
     }
ed0026