pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/audit-packages When in verbose mode, print a ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/39f9821268e9
branches: trunk
changeset: 519568:39f9821268e9
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Oct 05 14:26:42 2006 +0000
description:
When in verbose mode, print a note when no vulnerable packages are
found. Bump to 1.44. Addresses PR 24454. OK agc@
diffstat:
security/audit-packages/Makefile | 4 ++--
security/audit-packages/files/audit-packages | 8 +++++++-
2 files changed, 9 insertions(+), 3 deletions(-)
diffs (46 lines):
diff -r cdf935fbb647 -r 39f9821268e9 security/audit-packages/Makefile
--- a/security/audit-packages/Makefile Thu Oct 05 13:11:50 2006 +0000
+++ b/security/audit-packages/Makefile Thu Oct 05 14:26:42 2006 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.69 2006/09/20 14:43:30 rillig Exp $
+# $NetBSD: Makefile,v 1.70 2006/10/05 14:26:42 joerg Exp $
-DISTNAME= audit-packages-1.43
+DISTNAME= audit-packages-1.44
CATEGORIES= security pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff -r cdf935fbb647 -r 39f9821268e9 security/audit-packages/files/audit-packages
--- a/security/audit-packages/files/audit-packages Thu Oct 05 13:11:50 2006 +0000
+++ b/security/audit-packages/files/audit-packages Thu Oct 05 14:26:42 2006 +0000
@@ -1,6 +1,6 @@
#! @SH@
#
-# $NetBSD: audit-packages,v 1.27 2006/04/15 15:02:10 salo Exp $
+# $NetBSD: audit-packages,v 1.28 2006/10/05 14:26:42 joerg Exp $
#
# Copyright (c) 2000-2003 Alistair Crooks. All rights reserved.
#
@@ -186,6 +186,7 @@
;;
esac
+found_vulnpkg=0
# check for vulnerabilities
while read pat type url; do
case "$pat" in
@@ -201,9 +202,14 @@
fi
fi
for pkg in $vulnpkgs ; do
+ found_vulnpkg=`expr $found_vulnpkg + 1`
echo "Package $pkg has a" \
"$type vulnerability, see $url"
done
done < "$vuls"
+if [ "$verbose" = "yes" -a "$found_vulnpkg" -eq 0 ]; then
+ echo "No vulnerable packages found."
+fi
+
exit 0
Home |
Main Index |
Thread Index |
Old Index