From: Tzafrir Cohen Date: Fri, 3 Jan 2014 22:24:18 +0000 (+0000) Subject: asterisk.c: suppress live_dangerously warning on rasterisk X-Git-Tag: 11.8.0-rc1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fec771b7c86130b0dbff8e807dd1839789f61401;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@404888 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/asterisk.c b/main/asterisk.c index 0ed1b2b7af..b8bd4be6aa 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -3421,7 +3421,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) {