[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#781107: ssh-keygen -F return code has changed and is not documented



Package: openssh-client
Version: 1:6.7p1-3
Severity: normal
Tags: upstream

Hi,

The return codes for ssh-keygen -F are undocumented. In stable's
version (1:6.0p1-4+deb7u2) you get:

mcv21@pick:~$ ssh-keygen -F foo.invalid -f ~/.ssh/known_hosts
mcv21@pick:~$ echo $?
0

But in testing's version, you get:

root@boarstall:~# ssh-keygen -F foo.invalid -f /etc/ssh/ssh_known_hosts 
root@boarstall:~# echo $?
1

I can see nothing in upstream changelogs to flag this change, and the
manual for ssh-keygen doesn't state its return codes.

So code relying on the old behaviour (0 return value, no output ==>
host not in known_hosts, otherwise all is well) now fails as
ssh-keygen is returning non-zero.

I think this is a bug, and that the behaviour in this case should be
restored; even if not, the new behaviour should be documented.

Regards,

Matthew

-- System Information:
Debian Release: 7.8
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openssh-client depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.49
ii  dpkg                   1.16.15
ii  libc6                  2.13-38+deb7u8
ii  libedit2               2.11-20080614-5
ii  libgssapi-krb5-2       1.10.1+dfsg-5+deb7u3
ii  libselinux1            2.1.9-5
ii  libssl1.0.0            1.0.1e-2+deb7u15
ii  passwd                 1:4.1.5.1-1
ii  zlib1g                 1:1.2.7.dfsg-13

Versions of packages openssh-client recommends:
ii  openssh-blacklist        0.4.1+nmu1
ii  openssh-blacklist-extra  0.4.1+nmu1
ii  xauth                    1:1.0.7-1

Versions of packages openssh-client suggests:
pn  keychain      <none>
pn  libpam-ssh    <none>
pn  monkeysphere  <none>
pn  ssh-askpass   <none>

-- Configuration Files:
/etc/ssh/ssh_config changed [not included]

-- no debconf information


Reply to: