Bug#1002803: openssh: typo in alternatives

Daniel Baumann <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <e4cae2e5-00c9-6df5-2aec-e64a576bb665__49144.4491128036$1640749174$gmane$org@progress-linux.org>
Package: openssh
Version: 1:8.7p1-3
Severity: serious
Tag: patch

Hi,

I think there's a typo here (running openssh-client postinst with set -x):

--snip--
+ update-alternatives --install /usr/bin/rcp rcp /usr/bin/scp 20 --slave 
/usr/share/man/man1/rcp.1.gz rcp.1.gz /usr/share/man/man1/rcp.1.gz
--snap--

which makes installing openssh-client fail with:

--snip--
update-alternatives: <link> and <path> can't be the same

Use 'update-alternatives --help' for program usage information.
dpkg: error processing package openssh-client (--configure):
  installed openssh-client package post-installation script subprocess 
returned error exit status 2
--snap--

Patch is attached.

Regards,
Daniel
openssh.patch (text/x-patch, 1008 B)
commit e96ee84afe84fdd2fe7b259d564ebd10db04324c
gpg: Signature made Wed 29 Dec 2021 04:32:14 AM CET
gpg:                using EDDSA key 95409F2944B1C6D44C6B49D53E6CA28DAAF8DD14
gpg: Good signature from "Daniel Baumann <[email protected]>" [ultimate]
Primary key fingerprint: 9540 9F29 44B1 C6D4 4C6B  49D5 3E6C A28D AAF8 DD14
Author: Daniel Baumann <[email protected]>
Date:   Wed Dec 29 04:31:54 2021 +0100

    Correcting typo in openssh-client.alternatives.
    
    Signed-off-by: Daniel Baumann <[email protected]>

diff --git a/debian/openssh-client.alternatives b/debian/openssh-client.alternatives
index 6fe0484..acb906b 100644
--- a/debian/openssh-client.alternatives
+++ b/debian/openssh-client.alternatives
@@ -16,5 +16,5 @@ Name: rcp
 Link: /usr/bin/rcp
 Alternative: /usr/bin/scp
 Dependents:
-  /usr/share/man/man1/rcp.1.gz rcp.1.gz /usr/share/man/man1/rcp.1.gz
+  /usr/share/man/man1/rcp.1.gz rcp.1.gz /usr/share/man/man1/scp.1.gz
 Priority: 20
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.