Package: debian-security-support
Version: 2020.03.05
Severity: minor
Tags: patch upstream

Dear Maintainer,

Commit df738471cce07f946671aea7ae72db74f28a2ee6 (bug #951874 patch 4/4)
caused an unintentional output change:

% dash -c 'echo "\n"' | xxd
00000000: 0a0a                                     ..
% dash -c 'echo ""' | xxd 
00000000: 0a                                       .
% 

The following patch fixes the regression:

8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--
>From 251a86c34a53fa22e8c05411354fed92ab7425d1 Mon Sep 17 00:00:00 2001
From: Daniel Shahaf <Daniel Shahaf [email protected]>
Date: Thu, 12 Mar 2020 16:58:04 +0000
Subject: [PATCH] Fix output regression: restore empty line inadvertently
 removed by #951874.

---
 check-support-status.in | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/check-support-status.in b/check-support-status.in
index f33f16e..c55bd46 100755
--- a/check-support-status.in
+++ b/check-support-status.in
@@ -297,30 +297,30 @@ if [ -z "$NOHEADING" ] ; then
         earlyend)
             gettext \
 "Future end of support for one or more packages"
-            echo ""
+            echo; echo
             gettext \
 "Unfortunately, it will be necessary to end security support for some packages 
before the end of the regular security maintenance life cycle." | $FOLD
-            echo ""
+            echo; echo
             gettext \
 "The following packages found on this system are affected by this:" ; echo
             ;;
         ended)
             gettext \
 "Ended security support for one or more packages"
-            echo ""
+            echo; echo
             gettext \
 "Unfortunately, it has been necessary to end security support for some 
packages before the end of the regular security maintenance life cycle." | $FOLD
-            echo ""
+            echo; echo
             gettext \
 "The following packages found on this system are affected by this:" ; echo
             ;;
         limited)
             gettext \
 "Limited security support for one or more packages"
-            echo ""
+            echo; echo
             gettext \
 "Unfortunately, it has been necessary to limit security support for some 
packages." | $FOLD
-            echo ""
+            echo; echo
             gettext \
 "The following packages found on this system are affected by this:" ; echo
             ;;

I note the test suite did not catch this regression.

Cheers,

Daniel

Reply via email to