group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #35848
[Bug 1881196] Re: postfix tls deploy-server-cert fails with "can't shift that many"
This bug was fixed in the package postfix - 3.5.3-1
---------------
postfix (3.5.3-1) unstable; urgency=medium
[Wietse Venema]
* 3.5.3 LP: #1881196
[Debian Janitor]
* Trim trailing whitespace.
* Fix day-of-week for changelog entries 0.0.20001030.SNAPSHOT-4,
0.0.20001030.SNAPSHOT-3, 0.0.19991231pl02-1, 0.0.19990122-1.
-- Scott Kitterman <scott@xxxxxxxxxxxxx> Mon, 15 Jun 2020 16:23:34
-0400
** Changed in: postfix (Ubuntu)
Status: Triaged => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1881196
Title:
postfix tls deploy-server-cert fails with "can't shift that many"
Status in postfix package in Ubuntu:
Fix Released
Status in postfix source package in Xenial:
Triaged
Status in postfix source package in Bionic:
Triaged
Status in postfix source package in Eoan:
Triaged
Status in postfix source package in Focal:
Triaged
Bug description:
lsb_release -rd
Description: Ubuntu 18.04.4 LTS
Release: 18.04
postfix:
Installed: 3.3.0-1ubuntu0.2
Candidate: 3.3.0-1ubuntu0.2
Version table:
*** 3.3.0-1ubuntu0.2 500
500 http://us-west-2.ec2.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
3.3.0-1 500
500 http://us-west-2.ec2.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Attempting to deploy server certificates with
postfix tls deploy-server-cert certificate.crt keyfile.key
Expected to deploy new certificates
What happened - command fails with
/usr/lib/postfix/sbin/postfix-tls-script: 780: shift: can't shift that many
The issue appears to be that the function "deploy-server-cert" in
/usr/lib/postfix/sbin/postfix-tls-script expects that there will be
three arguments:
/usr/lib/postfix/sbin/postfix-tls-script line 777
deploy_server_cert() {
certfile=$1; shift
keyfile=$1; shift
deploy=$1; shift
...
This works when the function is called by the function new_server_cert, which calls the function with the arguments:
deploy_server_cert "${certfile}" "${keyfile}" "${deploy}" || return 1
But when this function is invoked directly in line 1154, it is called with only 2 arguments
deploy_server_cert "${certfile}" "${keyfile}" || exit 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1881196/+subscriptions