Source: confget Version: 2.2.0-1 Severity: important Tags: upstream patch Control: notfound -1 2.3.4-1
Hi,
This bug report will serve mainly to justify a stable upload of confget
that fixes the parsing of values containing "=" in INI files.
The problem was fixed upstream in version 2.3.4 and so is not present in
unstable and testing.
The problem may be reproduced trivially:
# Create a test.ini file containing a weird key/value pair
(buster-amd64)root@straylight:/cftest# cat > test.ini
[whee]
key=value=another=third
# The C implementation finds a variable named "key" with the weird value
(buster-amd64)root@straylight:/cftest# confget -f test.ini -s whee key
value=another=third
# The Python implementation finds the "whee" section, but then finds
# a variable named "key=value=another" inside
(buster-amd64)root@straylight:/cftest# python3 -c 'import confget; ccfg =
confget.Config([], filename="test.ini"); cbak = confget.BACKENDS["ini"](ccfg);
print(repr(cbak.read_file()))'
{'': {}, 'whee': {'key=value=another': 'third'}}
(buster-amd64)root@straylight:/cftest#
The fix is trivially backported from the upstream source; I will provide
it as a justification for a stable upload shortly.
G'luck,
Peter
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.5.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8),
LANGUAGE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-- no debconf information
signature.asc
Description: PGP signature

