Bug 58358 - Команды не выполняются
Summary: Команды не выполняются
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: ip-brctl (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-25 11:39 MSK by Vladislav Glinkin
Modified: 2026-03-27 02:13 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladislav Glinkin 2026-03-25 11:39:49 MSK
Везде, где используется функция exec_iplink наблюдается одна и та же проблема. Аргументы передаются вместе с кавычками.

Версия пакета:
	ip-brctl-0.2-alt1

Шаги воспроизведения:
	# brctl addbr br0

Результат:
	add bridge failed: Command "add br0 type bridge" is unknown, try "ip link help".

Отладка показывает, что команда запускается через:
	/sbin/ip link 'add br0 type bridge'

Как вариант решения проблемы:
--- a/usr/sbin/ip-brctl
+++ b/usr/sbin/ip-brctl
@@ -127,7 +127,7 @@ exec_iplink() {
        args="${1}"
        err_prefix="${2}"
 
-       err_out="$(${IP} link "${args}" 2>&1)" || err "${err_prefix}: ${err_out#*:}"
+       err_out="$(${IP} link ${args} 2>&1)" || err "${err_prefix}: ${err_out#*:}"
 }
 
 # Print passed error string and exit if the given device does or does not exist,
Comment 1 Repository Robot 2026-03-27 02:13:00 MSK
ip-brctl-0.3-alt1 -> sisyphus:

Fri Mar 27 2026 Alexey Shabalin <shaba@altlinux> 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).