[Bug 2285] New: Say NOT updated instead of updated

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Oct 7 07:22:28 EST 2014


https://bugzilla.mindrot.org/show_bug.cgi?id=2285

            Bug ID: 2285
           Summary: Say NOT updated instead of updated
           Product: Portable OpenSSH
           Version: 6.6p1
          Hardware: Other
               URL: http://bugs.debian.org/764269
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: ssh-keygen
          Assignee: unassigned-bugs at mindrot.org
          Reporter: jidanni at jidanni.org

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.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list