Package: utrans
Version: 0.6-4
Severity: grave
Tags: patch
Justification: renders package unusable

I assume that a list of secbits flags separated by space characters
should have been converted into a `+secbit1,+secbit2,...,+secbitN` string.
If this is the case, the following patch solves this problem.

The former version with the parameter expansion never worked with Bash
(version 5.2.37).

The `-z` in the `sed` invocation prohibits line splitting.

--- /usr/share/utrans/backends/lsb      2025-01-24 11:09:40.000000000 +0100
+++ /usr/share/utrans/backends/lsb.new  2025-01-27 09:18:27.361643417 +0100
@@ -243,7 +243,8 @@
 
                if [[ -n "${service[SecureBits]:-}" ]]; then
                        secbits=${service[SecureBits]/-/_}
-                       lsb[SETPRIV_ARGS]+="--securebits +${secbits//[$[' 
\r\t\n']/,+} "
+                       secbits_trans="$(echo "$secbits" | sed -z 's/[ 
\r\t\n]/,+/g')"
+                       lsb[SETPRIV_ARGS]+="--securebits +$secbits_trans "
                fi
 
                if [[ "${service[CapabilityBoundingSet]+defined}" ]] ; then


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.6-amd64 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages utrans depends on:
ii  libcap2-bin  1:2.66-5+b1

Versions of packages utrans recommends:
ii  cron [cron-daemon]                3.0pl1-189
ii  openbsd-inetd [inet-superserver]  0.20221205-3+b2
ii  sasa [socket-activate]            0.3-1
ii  sysv-rc                           3.13-1

utrans suggests no packages.

-- no debconf information

Reply via email to