<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15827">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty: Return error if cmd returns CMD_WARNING while reading cfg file<br><br>Otherwise bad configurations can easily sneak in and produce unexpected<br>behavior.<br><br>Change-Id: Ic9c1b566ec4a459f03e6319cf369691903cf9d00<br>---<br>M src/vty/command.c<br>1 file changed, 1 insertion(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/27/15827/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 a36f30a..6a9d18a 100644</span><br><span>--- a/src/vty/command.c</span><br><span>+++ b/src/vty/command.c</span><br><span>@@ -2631,8 +2631,7 @@</span><br><span>                 ret = cmd_execute_command_strict(vline, vty, NULL);</span><br><span>          cmd_free_strvec(vline);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-             if (ret != CMD_SUCCESS && ret != CMD_WARNING</span><br><span style="color: hsl(0, 100%, 40%);">-                && ret != CMD_ERR_NOTHING_TODO) {</span><br><span style="color: hsl(120, 100%, 40%);">+         if (ret != CMD_SUCCESS && ret != CMD_ERR_NOTHING_TODO) {</span><br><span>                     if (indent) {</span><br><span>                                talloc_free(indent);</span><br><span>                                 indent = NULL;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15827">change 15827</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/+/15827"/><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: Ic9c1b566ec4a459f03e6319cf369691903cf9d00 </div>
<div style="display:none"> Gerrit-Change-Number: 15827 </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>