<p>Jaco Kroon has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15628">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">menuselect: exit non-zero in case of failure on --enable|disable options.<br><br>Change-Id: I77e3466435f5a51a57538b29addb68d811af238d<br>Signed-off-by: Jaco Kroon <jaco@uls.co.za><br>---<br>M menuselect/menuselect.c<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/28/15628/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/menuselect/menuselect.c b/menuselect/menuselect.c</span><br><span>index 2eea3f0..adb6fa1 100644</span><br><span>--- a/menuselect/menuselect.c</span><br><span>+++ b/menuselect/menuselect.c</span><br><span>@@ -2090,6 +2090,7 @@</span><br><span> /* Reset options processing */</span><br><span> option_index = 0;</span><br><span> optind = 1;</span><br><span style="color: hsl(120, 100%, 40%);">+ res = 0;</span><br><span> </span><br><span> while ((c = getopt_long(argc, argv, "", long_options, &option_index)) != -1) {</span><br><span> print_debug("Got option %c\n", c);</span><br><span>@@ -2100,6 +2101,7 @@</span><br><span> set_member_enabled(mem);</span><br><span> } else {</span><br><span> fprintf(stderr, "'%s' not found\n", optarg);</span><br><span style="color: hsl(120, 100%, 40%);">+ res = 1;</span><br><span> }</span><br><span> }</span><br><span> break;</span><br><span>@@ -2109,6 +2111,7 @@</span><br><span> set_all(cat, 1);</span><br><span> } else {</span><br><span> fprintf(stderr, "'%s' not found\n", optarg);</span><br><span style="color: hsl(120, 100%, 40%);">+ res = 1;</span><br><span> }</span><br><span> }</span><br><span> break;</span><br><span>@@ -2123,6 +2126,7 @@</span><br><span> clear_member_enabled(mem);</span><br><span> } else {</span><br><span> fprintf(stderr, "'%s' not found\n", optarg);</span><br><span style="color: hsl(120, 100%, 40%);">+ res = 1;</span><br><span> }</span><br><span> }</span><br><span> break;</span><br><span>@@ -2132,6 +2136,7 @@</span><br><span> set_all(cat, 0);</span><br><span> } else {</span><br><span> fprintf(stderr, "'%s' not found\n", optarg);</span><br><span style="color: hsl(120, 100%, 40%);">+ res = 1;</span><br><span> }</span><br><span> }</span><br><span> break;</span><br><span>@@ -2146,7 +2151,6 @@</span><br><span> break;</span><br><span> }</span><br><span> }</span><br><span style="color: hsl(0, 100%, 40%);">- res = 0;</span><br><span> }</span><br><span> </span><br><span> if (!res) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15628">change 15628</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/+/15628"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I77e3466435f5a51a57538b29addb68d811af238d </div>
<div style="display:none"> Gerrit-Change-Number: 15628 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>