Your message dated Tue, 17 Nov 2026 18:05:18 +0000
with message-id <[email protected]>
and subject line Bug#1144371: fixed in unzip 6.0-32
has caused the Debian Bug report #1144371,
regarding unzip: shell prompt remains on same line after SIGINT
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 [email protected]
immediately.)
--
1144371: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1144371
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: unzip
Version: 6.0-31
Severity: minor
Tags: patch
When unzip is interrupted with Ctrl+C at an interactive replacement prompt, the
shell prompt appears on the same line as ^C.
Steps to reproduce:
1. Create a file and archive it:
tmpdir=$(mktemp -d)
cd "$tmpdir"
printf 'hello\n' > file.txt
zip -q sample.zip file.txt
2. Run:
unzip sample.zip
3. Press Ctrl+C at the replacement prompt.
The current output is:
replace file.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: ^Cuser@host:~$
The expected output is:
replace file.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: ^C
user@host:~$
The signal handler in fileio.c already contains code intended to add a newline.
However, its compile-time condition excludes that code on systems defining
SIGBUS or SIGSEGV, including Linux, regardless of the signal actually received.
The attached patch preserves the existing behavior on other systems and adds a
runtime SIGINT branch when the original condition suppresses the newline.
The problem was originally reproduced with Ubuntu's unzip 6.0-29ubuntu1. I
confirmed that the affected code is present in Debian's 6.0-31 source package.
Testing performed:
* Built successfully using the complete Debian patch series.
* Built the binary Debian package successfully with dpkg-buildpackage.
* Debian-profile Lintian completed with exit code 0.
* Confirmed that the shell prompt starts on a new line after Ctrl+C.
* Confirmed that the exit code remains 80.
-- System Information:
Debian Release: forky/sid
APT prefers resolute-updates
APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500,
'resolute'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 7.0.0-28-generic (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE,
TAINT_SOFTLOCKUP
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)
LSM: AppArmor: enabled
Description: Print a newline when SIGINT interrupts an interactive prompt
The compile-time condition suppresses the newline on systems defining
SIGBUS or SIGSEGV, including Linux. Preserve the existing behavior on
other systems and add the missing newline when SIGINT is received.
Author: Adn Ehab Elkawass <[email protected]>
Forwarded: no
Last-Update: 2026-08-14
diff --git a/fileio.c b/fileio.c
index ba0a1d0..aa3117d 100644
--- a/fileio.c
+++ b/fileio.c
@@ -1637,3 +1637,6 @@ void handler(signal) /* upon interrupt, turn on echo
and exit cleanly */
#if !(defined(SIGBUS) || defined(SIGSEGV)) /* add a newline if not at */
(*G.message)((zvoid *)&G, slide, 0L, 0x41); /* start of line (to stderr;
*/
+#elif defined(SIGINT)
+ if (signal == SIGINT)
+ (*G.message)((zvoid *)&G, slide, 0L, 0x41);
#endif /* slide[] should be safe) */
--- End Message ---
--- Begin Message ---
Source: unzip
Source-Version: 6.0-32
Done: Santiago Vila <[email protected]>
We believe that the bug you reported is fixed in the latest version of
unzip, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Santiago Vila <[email protected]> (supplier of updated unzip 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 17 Nov 2026 18:35:00 +0100
Source: unzip
Architecture: source
Version: 6.0-32
Distribution: unstable
Urgency: medium
Maintainer: Santiago Vila <[email protected]>
Changed-By: Santiago Vila <[email protected]>
Closes: 1144371 1153750
Changes:
unzip (6.0-32) unstable; urgency=medium
.
* Print a newline when SIGINT interrupts an interactive prompt.
Thanks to Adn Ehab Elkawass. Closes: #1144371.
* Harden parsing of "up" extra field. Closes: #1153750.
Thanks to Vladimir Akparov.
Checksums-Sha1:
bac643db827497fed7b51adb95211477c7c6752c 1463 unzip_6.0-32.dsc
ae7f079d768932eaddf2e0e9772569d53947d4d8 27728 unzip_6.0-32.debian.tar.xz
432af937a7c92f729a94ee10b2f2b2e9b030d292 4889 unzip_6.0-32_source.buildinfo
Checksums-Sha256:
2b72a6840459c06bf82fe5dcef45cc79eee8a955cf083f1487b1f1f34733d038 1463
unzip_6.0-32.dsc
b84bd393d0ff68740a013b9f82d4538cefaa6f293ae2741c143d0feff2a136f4 27728
unzip_6.0-32.debian.tar.xz
98543fab931736e8a07a05032de96a0ed4e816f17ce6a5a41453d58491e942ec 4889
unzip_6.0-32_source.buildinfo
Files:
0ec7bfee793fb737f94d47be537c0e25 1463 utils optional unzip_6.0-32.dsc
296a85b9b68ddd0e7ca1b1c890f43d6f 27728 utils optional
unzip_6.0-32.debian.tar.xz
74962cc3b191135881703f4f17a8c48e 4889 utils optional
unzip_6.0-32_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmr8kTEACgkQQc5/C58b
izLyYQgAgbZF91xqiUyhLIMyEzp0O6hHde3ylAMa6MtZo1Uw9lWQoJzEJNNicrim
6AvjvyhgR2TLDSxS+US3QShltmtTzr5jROCGKQN0tXxrYMnv+j9xTb2kzjZ7UIsb
33l4bL7sCtTtPTf5e8+nnx3lB5pLeJ+u3azF2F0AoagOopyqJaTVcOIaj3letDcJ
iPVCAKNImhpd/kUzxflMMpr5c55KImDsCx8944eM2NWMhDG1cMKtQhzWW/CwkVRQ
a7HyH1gtgr4A8xIh1GMt9n/VbmZxo+QYJWMpDpOXeMeVnioJEjEAY5Pvo2gcN0RC
KEj3EsZBm4joJmBmIobei6QKiFoU9A==
=qKcQ
-----END PGP SIGNATURE-----
pgpvOONj_Rh2t.pgp
Description: PGP signature
--- End Message ---