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

Bug#764269: Say NOT updated instead of updated



Package: openssh-client
Version: 1:6.6p1-8
Severity: minor
File: /usr/bin/ssh-keygen

We observe that aside from the first run below,
the message "/home/jidanni/.ssh/known_hosts updated." is incorrect.
Using diff(1) we show that the contents remain the same.
Therefore in the latter cases, saying
"/home/jidanni/.ssh/known_hosts NOT updated."
would be better. Nor is there any reason to write a backup.

$ ssh-keygen -f "/home/jidanni/.ssh/known_hosts" -R m.jidanni.org
# Host m.jidanni.org found: line 2 type RSA
/home/jidanni/.ssh/known_hosts updated.
Original contents retained as /home/jidanni/.ssh/known_hosts.old
$ ssh-keygen -f "/home/jidanni/.ssh/known_hosts" -R m.jidanni.org
/home/jidanni/.ssh/known_hosts updated.
Original contents retained as /home/jidanni/.ssh/known_hosts.old
$ ssh-keygen -f "/home/jidanni/.ssh/known_hosts" -R m.jidanni.org
/home/jidanni/.ssh/known_hosts updated.
Original contents retained as /home/jidanni/.ssh/known_hosts.old
$ diff /home/jidanni/.ssh/known_hosts.old /home/jidanni/.ssh/known_hosts
$

Yes you might think it odd that a user would repeat the command by
accident perhaps, but even more odd are the incorrect messages.


Reply to: