From 2018267a4527429dce41a542a806cdb76225b86f Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Tue, 20 Nov 2012 06:32:53 +0530 Subject: [PATCH] (minor) fixes to lint program, mainly usage message --- src/commands/sshkeys-lint | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/commands/sshkeys-lint b/src/commands/sshkeys-lint index 2ff8e66..a981a13 100755 --- a/src/commands/sshkeys-lint +++ b/src/commands/sshkeys-lint @@ -73,7 +73,7 @@ for my $pkf (@pubkeyfiles) { my $fp = fprint($pkf); next unless $fp; msg 1, "$pkfsn appears to be a COPY of $pkf_by_fp{$fp}\n" if $pkf_by_fp{$fp}; - $pkf_by_fp{$fp} ||= $pkf; + $pkf_by_fp{$fp} ||= $pkfsn; my $fpu = ( $seen_fprints{$fp}{user} || 'no access' ); msg 0, "$pkfsn maps to $fpu\n"; } @@ -170,17 +170,20 @@ sub fprint { sub usage { print <