Your message dated Mon, 11 Nov 2024 21:34:26 +0000
with message-id <e1tac3g-003joi...@fasolo.debian.org>
and subject line Bug#1082953: fixed in reportbug 13.0.2
has caused the Debian Bug report #1082953,
regarding reportbug: bugscript outputs ambiguous environment variables
containing quotes
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1082953: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1082953
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: reportbug
Version: 13.0.1
Severity: minor
X-Debbugs-Cc: spa...@gmail.com
Dear Maintainer,
When submitting a bug on this package, the bugscript outputs a list of relevant
environment variables and their values. The output quotes the values, but does
not escape quotes within the values, leading to output that can look like this:
EXAMPLE="which "words" are "really" "quoted"?"
The attached patch uses the shlex python package to escape the values so the
output could be copied/pasted into a shell to reproduce the settings locally.
The new output only uses quotes when necessary. A version that always quotes,
and still performs appropriate escaping, is possible but would be more complex
This bug report was created using reportbug including the attached patch, and
the new formatting is visible in the "Package-specific info" section below.
-- Package-specific info:
** Environment settings:
EDITOR='code --wait'
VISUAL='code --wait'
DEBEMAIL=spa...@gmail.com
DEBFULLNAME='Clarence "Sparr" Risher'
INTERFACE=text
** /home/sparr/.reportbugrc:
reportbug_version "13.0.1"
mode novice
ui text
realname "Clarence \"Sparr\" Risher"
email "spa...@gmail.com"
no-cc
list-cc-me
smtphost reportbug.debian.org
-- System Information:
Architecture: amd64 (x86_64)
Kernel: Linux 6.10.10-arch1-1 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
diff --git a/share/script b/share/script
index e9b486c..b36e779 100755
--- a/share/script
+++ b/share/script
@@ -3,6 +3,7 @@
import os
import re
+import shlex
OUT = os.fdopen(3, 'w', encoding='utf-8', errors='backslashreplace')
@@ -13,7 +14,7 @@ for var in ['EDITOR', 'PAGER', 'VISUAL', 'REPORTBUGEMAIL',
'DEBEMAIL', 'EMAIL',
if not envprint:
print('** Environment settings:', file=OUT)
envprint = True
- print('%s="%s"' % (var, os.environ[var]), file=OUT)
+ print('%s=%s' % (var, shlex.quote(os.environ[var])), file=OUT)
passwdre = re.compile(r'\s*(smtppasswd)\s+(.*)$')
--- End Message ---
--- Begin Message ---
Source: reportbug
Source-Version: 13.0.2
Done: Nis Martensen <nis.marten...@web.de>
We believe that the bug you reported is fixed in the latest version of
reportbug, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1082...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Nis Martensen <nis.marten...@web.de> (supplier of updated reportbug package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 11 Nov 2024 22:12:14 +0100
Source: reportbug
Architecture: source
Version: 13.0.2
Distribution: unstable
Urgency: medium
Maintainer: Reportbug Maintainers <debian-report...@lists.debian.org>
Changed-By: Nis Martensen <nis.marten...@web.de>
Closes: 1071052 1082953 1083002
Changes:
reportbug (13.0.2) unstable; urgency=medium
.
[ Paul Wise ]
* Allow multiple-enabled menu UI to have items selected by default
* Allow multiple-select menu wrapper to set options to enable by default
* Allow overriding the automatically enabled tags
.
[ Alexandre Rossi ]
* suggest src version instead of binary version for binNMUs (Closes:
#1071052)
.
[ Nis Martensen ]
* reportbug/debbugs.py: fix add_affects_package without info
(Closes: #1083002)
* debian/control: python3-report is priority: optional now
.
[ Clarence "Sparr" Risher ]
* share/script: escape environment variables (Closes: #1082953)
.
[ Nis Martensen ]
* reportbug/utils.py: do not show errors if missing conffiles are obsolete
* bin/reportbug: small simplification in conffile listing code
* reportbug/ui/gtk_ui.py: drop unused variable
* reportbug/ui/gtk_ui.py: avoid shadowing the 'iter' builtin function
* reportbug/ui/*.py: replace type equals with isinstance()
* d/control and r/debbugs.py: bump standards-version
Checksums-Sha1:
059c1a68d59aa98cd0df113802ee495c5f2a251b 1888 reportbug_13.0.2.dsc
4fdc44f58bcea2c4e183bd48993ed1e2c558e1e8 214528 reportbug_13.0.2.tar.xz
6fb9eb51a9895ee0128832d791a7a11b42d2833e 7990 reportbug_13.0.2_amd64.buildinfo
Checksums-Sha256:
b3572b9502c00b57b97a33800d2c9479802fde368243864616eac3976e7739ed 1888
reportbug_13.0.2.dsc
7d05903eb19cae45a7ba19272cee0b453fb06eb37cb2c8ebfc295949d1a9d80f 214528
reportbug_13.0.2.tar.xz
d97518820566d1e0087414f3f2fc6091f7de78b49bdd8e212090fc922401b21f 7990
reportbug_13.0.2_amd64.buildinfo
Files:
1a55f4aa524488da983a4edca40506c2 1888 utils standard reportbug_13.0.2.dsc
076365189d593efb0f1bade3d853d58e 214528 utils standard reportbug_13.0.2.tar.xz
a8c90e26fcb0c2fdb587d2fa60c8063a 7990 utils standard
reportbug_13.0.2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEElwagcOR0bw2C8YAgINUE/crqn1AFAmcydQoACgkQINUE/crq
n1BC0A/+JOFJlsx7M1FRwNC7eXmVDHL84Co8W3MykHhmzQNxp5r21dEsDVuqS8OC
Qxhd7B+/BRLglvv01IONdpC35c293Zdrpve1WL5frmijou7PZ4e3/P9gynn9aE4X
uOZkoakkz3GqjWKec4DzRyl8kx9Q6iCrbdgEOiWXoRc/fg30CZxH8xg6mT0J8cA2
5t4b6OwtvecYk7ZPJtyhDJ6Ft9IwtErLTFaV+jalNHQgGk2kZFkeG+6L0wW3IRkZ
LLotc/drqisQ5/PHBflrvMzei+7d1tTmiYBDm1LPJgDwYszpaUUZAqoNi7cgTbOT
i45EVL8ExqBR050S7dx6PqVKgd1R90z3QFojXLbRw5FxUVqL+rW0qNCUCL/rvUhg
kW4fvUwETxX8gzt3UygYRFT0uf0hudCdFpwa9qhTDGOIAeT8f8n+ynAH7a2/xAOf
rpzklbVpAUhVEtHsiBekhkV6MomDWoZmmaDxtEvXvTY5zDV0fzzrdOqjDYCCacQi
IFGWnS3rt/G40DdzRN28le97u0jqPMjg6OkoXkoVc809VTQ90UsWzTyC4uMyjIIH
E7gbZ0jnP4rsUvqsPogh65Bk2eFFo9OSBKEsNf8MbDg649vMUUk6KGO1ED/vO3rZ
o4MCYNYBzw2rx4hlca/rwcym7NRchxrF7bwdnpU8zQoGFXCtI/0=
=sKuf
-----END PGP SIGNATURE-----
pgpvo70WT2QRs.pgp
Description: PGP signature
--- End Message ---