<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21675">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ttcn3-tcpdump-start: Fix path of setcap<br><br>if we test if /sbin/setcap exists, we als should execute it from that<br>path, as running from a normal user doesn't have /sbin included in $PATH<br><br>Change-Id: I5131f869f86e6d136e0485da5e3749abbfc951e3<br>---<br>M ttcn3-tcpdump-start.sh<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/75/21675/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/ttcn3-tcpdump-start.sh b/ttcn3-tcpdump-start.sh</span><br><span>index 3ad14c0..e905d8a 100755</span><br><span>--- a/ttcn3-tcpdump-start.sh</span><br><span>+++ b/ttcn3-tcpdump-start.sh</span><br><span>@@ -39,7 +39,7 @@</span><br><span>     CAP_ERR="1"</span><br><span>     if [ -x /sbin/setcap ]; then</span><br><span>    # N. B: this check requires libcap2-bin package</span><br><span style="color: hsl(0, 100%, 40%);">- setcap -q -v 'cap_net_admin,cap_net_raw=pie' $DUMPCAP</span><br><span style="color: hsl(120, 100%, 40%);">+ /sbin/setcap -q -v 'cap_net_admin,cap_net_raw=pie' $DUMPCAP</span><br><span>  CAP_ERR="$?"</span><br><span>     fi</span><br><span>     if [ -u $DUMPCAP -o "$CAP_ERR" = "0" ]; then</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21675">change 21675</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/osmo-ttcn3-hacks/+/21675"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I5131f869f86e6d136e0485da5e3749abbfc951e3 </div>
<div style="display:none"> Gerrit-Change-Number: 21675 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>