summaryrefslogtreecommitdiff
path: root/main/asterisk.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2014-01-04 10:52:43 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2014-01-04 10:52:43 +0000
commit3eee3f21ad8b7ea82874ba89575d06fb626be4d7 (patch)
tree14c2684944f3bc4a22524df0e832913b21b50dba /main/asterisk.c
parent2f62394fb5bd099e534f4a7df2fd939e972868d5 (diff)
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 ........ Merged revisions 404911 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index d06509516..86667e061 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -3571,7 +3571,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) {