From e7183d9c2232da37b109dfe27ab25551bbe36ff2 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 25 Aug 2008 08:54:17 +0000 Subject: Remove unnecessary ssh-vulnkey output in non-verbose mode when no compromised or unknown keys were found (closes: #496495). --- ssh-vulnkey.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ssh-vulnkey.c') 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) printf("# Some keys on your system have been compromised!\n"); printf("# You must replace them using ssh-keygen(1).\n"); } - printf("#\n"); - printf("# See the ssh-vulnkey(1) manual page for further advice.\n"); + if (some_unknown || some_compromised) { + printf("#\n"); + printf("# See the ssh-vulnkey(1) manual page for further advice.\n"); + } else if (verbosity > 0) { + printf("#\n"); + printf("# No blacklisted keys!\n"); + } } return ret; -- cgit v1.2.3