<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11071">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty list: fix deprecation/hidden bit logic<br><br>If a command is both hidden and deprecated, still don't show it for the 'list'<br>command.<br><br>We currently have no such nodes, as it seems, though.<br><br>Related: OS#3584<br>Change-Id: I07ec15cab057a3e09064e0420a69121ee8eb4253<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/71/11071/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 900680f..1e77d13 100644</span><br><span>--- a/src/vty/command.c</span><br><span>+++ b/src/vty/command.c</span><br><span>@@ -2728,8 +2728,7 @@</span><br><span> </span><br><span>  for (i = 0; i < vector_active(cnode->cmd_vector); i++)</span><br><span>                 if ((cmd = vector_slot(cnode->cmd_vector, i)) != NULL</span><br><span style="color: hsl(0, 100%, 40%);">-                    && !(cmd->attr == CMD_ATTR_DEPRECATED</span><br><span style="color: hsl(0, 100%, 40%);">-                     || cmd->attr == CMD_ATTR_HIDDEN))</span><br><span style="color: hsl(120, 100%, 40%);">+             && !(cmd->attr & (CMD_ATTR_DEPRECATED | CMD_ATTR_HIDDEN)))</span><br><span>                        vty_out(vty, "  %s%s", cmd->string, VTY_NEWLINE);</span><br><span>       return CMD_SUCCESS;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11071">change 11071</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/11071"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I07ec15cab057a3e09064e0420a69121ee8eb4253 </div>
<div style="display:none"> Gerrit-Change-Number: 11071 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>