summaryrefslogtreecommitdiff
path: root/ssh-vulnkey.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2008-08-25 08:54:17 +0000
committerColin Watson <cjwatson@debian.org>2008-08-25 08:54:17 +0000
commite7183d9c2232da37b109dfe27ab25551bbe36ff2 (patch)
tree1094dc87144fa9d5b6baa0210f99c32da1eee519 /ssh-vulnkey.c
parent17f24d70ddce3bd70a1d8c6480d6aba732ee82d2 (diff)
Remove unnecessary ssh-vulnkey output in non-verbose mode when no
compromised or unknown keys were found (closes: #496495).
Diffstat (limited to 'ssh-vulnkey.c')
-rw-r--r--ssh-vulnkey.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ssh-vulnkey.c b/ssh-vulnkey.c
index fd37a1da8..b91f42925 100644
--- a/ssh-vulnkey.c
+++ b/ssh-vulnkey.c
@@ -372,8 +372,13 @@ main(int argc, char **argv)
372 printf("# Some keys on your system have been compromised!\n"); 372 printf("# Some keys on your system have been compromised!\n");
373 printf("# You must replace them using ssh-keygen(1).\n"); 373 printf("# You must replace them using ssh-keygen(1).\n");
374 } 374 }
375 printf("#\n"); 375 if (some_unknown || some_compromised) {
376 printf("# See the ssh-vulnkey(1) manual page for further advice.\n"); 376 printf("#\n");
377 printf("# See the ssh-vulnkey(1) manual page for further advice.\n");
378 } else if (verbosity > 0) {
379 printf("#\n");
380 printf("# No blacklisted keys!\n");
381 }
377 } 382 }
378 383
379 return ret; 384 return ret;