]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
asterisk.c: supress live_dangerously warning on rasterisk
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Fri, 3 Jan 2014 22:06:02 +0000 (22:06 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Fri, 3 Jan 2014 22:06:02 +0000 (22:06 +0000)
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/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@404861 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index c563b70c46d1504933ebaa9503ee3977ce05d95f..3550a516685f9d1061a76e2e1ddff8cba7f8c0e5 100644 (file)
@@ -3251,7 +3251,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) {