<p>Kevin Harwell <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13995">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, approved; Approved for Submit
George Joseph: Looks good to me, but someone else must approve
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">dahdiras: Only set plugin dahdi.so to pppd if we're running as root.<br><br>Users of this should set plugin dahdi.so in their options file.<br><br>ASTERISK-16676<br><br>Change-Id: I6d01ad0a10e9fea477876d0941c3f38aac357e91<br>---<br>M apps/app_dahdiras.c<br>1 file changed, 4 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/app_dahdiras.c b/apps/app_dahdiras.c</span><br><span>index 28cf6d1..87a7faf 100644</span><br><span>--- a/apps/app_dahdiras.c</span><br><span>+++ b/apps/app_dahdiras.c</span><br><span>@@ -120,8 +120,10 @@</span><br><span> c = strsep(&stringp, ",");</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- argv[argc++] = "plugin";</span><br><span style="color: hsl(0, 100%, 40%);">- argv[argc++] = "dahdi.so";</span><br><span style="color: hsl(120, 100%, 40%);">+ if (geteuid() == 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+ argv[argc++] = "plugin";</span><br><span style="color: hsl(120, 100%, 40%);">+ argv[argc++] = "dahdi.so";</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span> argv[argc++] = "stdin";</span><br><span> </span><br><span> /* Finally launch PPP */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13995">change 13995</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/13995"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I6d01ad0a10e9fea477876d0941c3f38aac357e91 </div>
<div style="display:none"> Gerrit-Change-Number: 13995 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>