Public bug reported:

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

** Affects: postfix (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1881196

Title:
  postfix tls deploy-server-cert fails with "can't shift that many"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1881196/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to