Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package run0-wrappers for openSUSE:Factory checked in at 2026-08-22 21:35:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/run0-wrappers (Old) and /work/SRC/openSUSE:Factory/.run0-wrappers.new.1258 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "run0-wrappers" Sat Aug 22 21:35:32 2026 rev:5 rq:1372964 version:0.5.0+git20260822.4d653d8 Changes: -------- --- /work/SRC/openSUSE:Factory/run0-wrappers/run0-wrappers.changes 2026-07-17 18:52:08.278647771 +0200 +++ /work/SRC/openSUSE:Factory/.run0-wrappers.new.1258/run0-wrappers.changes 2026-08-22 21:37:40.328498438 +0200 @@ -1,0 +2,7 @@ +Sat Aug 22 05:09:44 UTC 2026 - Thorsten Kukuk <[email protected]> + +- Update to version 0.5.0+git20260822.4d653d8: + * run0-sudo -E: skip invalid variable names [bsc#1274617] + * run0-su: fix type in error message (#7) + +------------------------------------------------------------------- Old: ---- run0-wrappers-0.5.0+git20260717.efd7268.tar.xz New: ---- run0-wrappers-0.5.0+git20260822.4d653d8.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ run0-wrappers.spec ++++++ --- /var/tmp/diff_new_pack.kehgbP/_old 2026-08-22 21:37:41.262531826 +0200 +++ /var/tmp/diff_new_pack.kehgbP/_new 2026-08-22 21:37:41.264531897 +0200 @@ -16,7 +16,7 @@ # Name: run0-wrappers -Version: 0.5.0+git20260717.efd7268 +Version: 0.5.0+git20260822.4d653d8 Release: 0 Summary: Configs and scripts to simulate some sudo and su behavior with run0 License: BSD-2-Clause ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.kehgbP/_old 2026-08-22 21:37:41.337534507 +0200 +++ /var/tmp/diff_new_pack.kehgbP/_new 2026-08-22 21:37:41.345534793 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/thkukuk/run0-wrappers.git</param> -<param name="changesrevision">efd7268da200569ee102f3a284d629244a14a5fe</param></service></servicedata> +<param name="changesrevision">4d653d882987b5098c4c4f24e4adfe0c39302901</param></service></servicedata> (No newline at EOF) ++++++ run0-wrappers-0.5.0+git20260717.efd7268.tar.xz -> run0-wrappers-0.5.0+git20260822.4d653d8.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/run0-wrappers-0.5.0+git20260717.efd7268/src/run0-su.sh.in new/run0-wrappers-0.5.0+git20260822.4d653d8/src/run0-su.sh.in --- old/run0-wrappers-0.5.0+git20260717.efd7268/src/run0-su.sh.in 2026-07-17 16:40:18.000000000 +0200 +++ new/run0-wrappers-0.5.0+git20260822.4d653d8/src/run0-su.sh.in 2026-08-22 07:08:19.000000000 +0200 @@ -100,7 +100,7 @@ shift ;; -m|-p|--preserve-environment) - echo "run0-su: preserve environment option '%arg' is ignored." >&2 + echo "run0-su: preserve environment option '$arg' is ignored." >&2 shift ;; -P |--pty) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/run0-wrappers-0.5.0+git20260717.efd7268/src/run0-sudo.sh.in new/run0-wrappers-0.5.0+git20260822.4d653d8/src/run0-sudo.sh.in --- old/run0-wrappers-0.5.0+git20260717.efd7268/src/run0-sudo.sh.in 2026-07-17 16:40:18.000000000 +0200 +++ new/run0-wrappers-0.5.0+git20260822.4d653d8/src/run0-sudo.sh.in 2026-08-22 07:08:19.000000000 +0200 @@ -332,6 +332,11 @@ LOGNAME|USER|PATH|HOME) continue ;; _*|SUDO_*) continue ;; esac + # Skip bash-exported shell functions (e.g. "BASH_FUNC_mc%%") and any + # other name that isn't a valid environment variable identifier; + if [[ ! "$__varname" =~ ^[a-zA-Z_][a-zA-Z0-9_]*$ ]]; then + continue + fi __run0_env+=("--setenv=${__entry}") done < <(printenv -0) elif [ -n "$__run0_preserve_env" ]; then diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/run0-wrappers-0.5.0+git20260717.efd7268/tests/meson.build new/run0-wrappers-0.5.0+git20260822.4d653d8/tests/meson.build --- old/run0-wrappers-0.5.0+git20260717.efd7268/tests/meson.build 2026-07-17 16:40:18.000000000 +0200 +++ new/run0-wrappers-0.5.0+git20260822.4d653d8/tests/meson.build 2026-08-22 07:08:19.000000000 +0200 @@ -27,6 +27,7 @@ test('tst_run0_sudo_9', find_program('tst-run0-sudo-9.sh')) test('tst_run0_sudo_10', find_program('tst-run0-sudo-10.sh')) test('tst_run0_sudo_11', find_program('tst-run0-sudo-11.sh')) +test('tst_run0_sudo_12', find_program('tst-run0-sudo-12.sh')) test('tst_run0_su_1', find_program('tst-run0-su-1.sh')) test('tst_run0_su_2', find_program('tst-run0-su-2.sh')) test('tst_run0_su_3', find_program('tst-run0-su-3.sh')) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/run0-wrappers-0.5.0+git20260717.efd7268/tests/tst-run0-sudo-12.sh new/run0-wrappers-0.5.0+git20260822.4d653d8/tests/tst-run0-sudo-12.sh --- old/run0-wrappers-0.5.0+git20260717.efd7268/tests/tst-run0-sudo-12.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/run0-wrappers-0.5.0+git20260822.4d653d8/tests/tst-run0-sudo-12.sh 2026-08-22 07:08:19.000000000 +0200 @@ -0,0 +1,24 @@ +#!/bin/sh + +LANG=C.UTF-8 + +# Test 12: -E must not choke on bash-exported shell functions +# Bash exports shell functions as environment entries named +# "BASH_FUNC_<name>%%" with the function body as the value. Such names +# are not valid environment variable identifiers and must be skipped +# instead of being passed on to run0's --setenv, which would abort with +# "Invalid argument". + +echo -e "\nTest 12: -E ignores bash-exported shell functions" +TEST_VAR="test123" +export TEST_VAR +# shellcheck disable=SC2317 +mc() { :; } +export -f mc + +if ./run0-sudo -E printenv TEST_VAR | grep -q "test123"; then + echo "✓ PASS: -E still preserves normal variables with a shell function exported" +else + echo "✗ FAIL: -E failed while a shell function was exported" + exit 1 +fi
