<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>58372</bug_id>
          
          <creation_ts>2026-03-25 17:36:11 +0300</creation_ts>
          <short_desc>Невозможно включить STP для сетевого моста</short_desc>
          <delta_ts>2026-03-27 02:13:00 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ip-brctl</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladislav Glinkin">glinkinvd</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>284536</commentid>
    <comment_count>0</comment_count>
    <who name="Vladislav Glinkin">glinkinvd</who>
    <bug_when>2026-03-25 17:36:11 +0300</bug_when>
    <thetext>Версия пакета:
	ip-brctl-0.2-alt1

Шаги воспроизведения:
	# brctl stp br0 on &amp;&amp; \
	brctl show br0

Результат:
	bridge name     bridge id               STP enabled     interfaces
	br0             8000.bc24116eff63       no              ens20

В функции make_bool() допущена опечатка, из-за чего любое значение возвращалось как 0.
Исправление:
--- a/usr/sbin/ip-brctl
+++ b/usr/sbin/ip-brctl
@@ -182,7 +182,7 @@ check_float() {
 make_bool() {
        in=&quot;${1}&quot;
        str_false=&quot;${2}&quot;
-       str_true=&quot;${2}&quot;
+       str_true=&quot;${3}&quot;
 
        case ${in} in
        off|no|0) echo &quot;${str_false}&quot; ;;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284650</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-03-27 02:13:00 +0300</bug_when>
    <thetext>ip-brctl-0.3-alt1 -&gt; sisyphus:

Fri Mar 27 2026 Alexey Shabalin &lt;shaba@altlinux&gt; 0.3-alt1
- Fix timer validation error texts.
- Fix delif error argument order.
- Tighten float input validation.
- Fix signed long range check.
- Fix hairpin slave option (ALT#58376).
- Fix boolean conversion in make_bool (ALT#58372).
- Fix setmaxage bridge attribute (ALT#58370).
- Align setgcint docs with implementation (ALT#58360).
- Fix addif validation (ALT#58359).
- Fix exec_iplink argument handling (ALT#58358).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>