[asterisk-commits] tzafrir: branch 1.8 r404861 - /branches/1.8/main/asterisk.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 3 16:06:04 CST 2014
Author: tzafrir
Date: Fri Jan 3 16:06:02 2014
New Revision: 404861
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404861
Log:
asterisk.c: supress 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/
Modified:
branches/1.8/main/asterisk.c
Modified: branches/1.8/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/asterisk.c?view=diff&rev=404861&r1=404860&r2=404861
==============================================================================
--- branches/1.8/main/asterisk.c (original)
+++ branches/1.8/main/asterisk.c Fri Jan 3 16:06:02 2014
@@ -3251,7 +3251,9 @@
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) {
More information about the asterisk-commits
mailing list