Bug#866038: qmail: "The hostname -f command returned: $1"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#866038: qmail: "The hostname -f command returned: $1"

Jakub Wilk-5
Package: qmail
Version: 1.06-6
Severity: minor

I got this error when installing qmail:

    The hostname -f command returned: $1

But no, "$1" is not what hostname -f returns on my system.

--
Jakub Wilk

Reply | Threaded
Open this post in threaded view
|

Bug#866038: qmail: "hostname -f returned: $1"

Dmitry Bogatov-3

control: tags -1 +patch

Hello. Here is patch to fix the problem. Gerrit, what do you think? Do
you want to make upload yourself or should I NMU?

Also, FYI, there is salsa.debian.org/kaction/qmail repository with more
patches.

From 83fb3c44825570502e5c9634ac1811f82050b907 Mon Sep 17 00:00:00 2001
From: Dmitry Bogatov <[hidden email]>
Date: Sun, 2 Jun 2019 12:17:24 +0000
Subject: [PATCH] Fix quotation in postinst

Closes: #866038
---
 debian/qmail.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/qmail.postinst b/debian/qmail.postinst
index 540f0f1..0fc53c2 100644
--- a/debian/qmail.postinst
+++ b/debian/qmail.postinst
@@ -2,7 +2,7 @@
 set -e
 
 stopinst() {
-  cat <<-\EOT >&2
+  cat <<-EOT >&2
 
  The hostname -f command returned: $1
 
--
        Note, that I send and fetch email in batch, once every 24 hours.
                 If matter is urgent, try https://t.me/kaction
                                                                             --

attachment0 (849 bytes) Download Attachment