<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15777">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty: Fix go_parent_cb not called for indented nodes at end of cfg file<br><br>Without this patch, for instance in this cfg file below, go_parent_cb is<br>not called for nodes such as "listen" and "cs7":<br>"""<br>line vty<br> no login<br>cs7 instance 0<br> xua rkm routing-key-allocation dynamic-permitted<br> listen m3ua 2905<br>  accept-asp-connections dynamic-permitted<br>  local-ip 127.0.0.1<br>"""<br><br>Related: OS#3608<br>Change-Id: Ia6d88c0e63d94ba99e950da6efbc4c1871070012<br>---<br>M src/vty/command.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/77/15777/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/vty/command.c b/src/vty/command.c</span><br><span>index 0d24b66..a36f30a 100644</span><br><span>--- a/src/vty/command.c</span><br><span>+++ b/src/vty/command.c</span><br><span>@@ -2662,6 +2662,10 @@</span><br><span>                         indent = NULL;</span><br><span>               }</span><br><span>    }</span><br><span style="color: hsl(120, 100%, 40%);">+     /* Make sure we call go_parent_cb for all remaining indent levels at the end of file */</span><br><span style="color: hsl(120, 100%, 40%);">+       while (vty_parent(vty))</span><br><span style="color: hsl(120, 100%, 40%);">+               vty_go_parent(vty);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>        return CMD_SUCCESS;</span><br><span> </span><br><span> return_invalid_indent:</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15777">change 15777</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/libosmocore/+/15777"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia6d88c0e63d94ba99e950da6efbc4c1871070012 </div>
<div style="display:none"> Gerrit-Change-Number: 15777 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>