From c4e5c41122b422b2575793a876205068a560449b Mon Sep 17 00:00:00 2001 From: Kevin Harwell Date: Fri, 11 Apr 2014 17:27:19 +0000 Subject: [PATCH] asterisk.c: suppress live_dangerously warning on rasterisk Even since the fixes of AST-2013-007, Asterisk prints the following warning on startup if the user decided to live dangerously: Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. This message is intended for the logs and interactive startup. No need for it to appear on a remote console. This commit removes it from there. (closes issue ASTERISK-23084) Review: https://reviewboard.asterisk.org/r/3101/ ........ Merged revisions 404861 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 404888 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/11.6@412212 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/asterisk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/asterisk.c b/main/asterisk.c index 96cfbd826b..60b6f34c7c 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -3479,7 +3479,9 @@ static void ast_readconfig(void) live_dangerously = ast_true(v->value); } } - pbx_live_dangerously(live_dangerously); + if (!ast_opt_remote) { + pbx_live_dangerously(live_dangerously); + } for (v = ast_variable_browse(cfg, "compat"); v; v = v->next) { float version; if (sscanf(v->value, "%30f", &version) != 1) { -- 2.47.2