pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/audit-packages fix quoting. bump version to ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/097282a3a71f
branches: trunk
changeset: 494241:097282a3a71f
user: dillo <dillo%pkgsrc.org@localhost>
date: Sat May 21 16:36:37 2005 +0000
description:
fix quoting. bump version to 1.34.
reviewed by wiz and agc.
diffstat:
security/audit-packages/Makefile | 4 ++--
security/audit-packages/files/audit-packages | 17 +++++++++--------
2 files changed, 11 insertions(+), 10 deletions(-)
diffs (76 lines):
diff -r 2601efb6d645 -r 097282a3a71f security/audit-packages/Makefile
--- a/security/audit-packages/Makefile Sat May 21 16:29:31 2005 +0000
+++ b/security/audit-packages/Makefile Sat May 21 16:36:37 2005 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.53 2005/04/11 21:47:10 tv Exp $
+# $NetBSD: Makefile,v 1.54 2005/05/21 16:36:37 dillo Exp $
-DISTNAME= audit-packages-1.33
+DISTNAME= audit-packages-1.34
CATEGORIES= security pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff -r 2601efb6d645 -r 097282a3a71f security/audit-packages/files/audit-packages
--- a/security/audit-packages/files/audit-packages Sat May 21 16:29:31 2005 +0000
+++ b/security/audit-packages/files/audit-packages Sat May 21 16:36:37 2005 +0000
@@ -1,6 +1,6 @@
#! @SH@
#
-# $NetBSD: audit-packages,v 1.17 2004/06/06 08:28:54 agc Exp $
+# $NetBSD: audit-packages,v 1.18 2005/05/21 16:36:37 dillo Exp $
#
# Copyright (c) 2000-2003 Alistair Crooks. All rights reserved.
#
@@ -40,7 +40,7 @@
. @PKG_SYSCONFDIR@/audit-packages.conf
fi
-vuls=${PKGVULNDIR}/pkg-vulnerabilities
+vuls="${PKGVULNDIR}/pkg-vulnerabilities"
verbose=no
while [ $# -gt 0 ]; do
@@ -53,11 +53,12 @@
errmsg=""
# check for missing vulnerabilities file
-[ ! -f $vuls ] && errmsg="** Missing $vuls"
+[ ! -f "$vuls" ] && errmsg="** Missing $vuls"
case "$errmsg" in
"") # check for old vulnerabilities file if we're being verbose
case "$verbose" in
+ # XXX: quote vuls
yes) [ -n "$(find $vuls -ctime +7)" ] && echo "*** WARNING - $vuls more than a week old, continuing..." ;;
esac
;;
@@ -65,15 +66,15 @@
case "$errmsg" in
"") # check integrity of vulnerabilities file
- recordedsum=`@AWK@ '$1 == "#CHECKSUM" { print $3 }' $vuls`
- recordedalg=`@AWK@ '$1 == "#CHECKSUM" { print $2 }' $vuls`
+ recordedsum=`@AWK@ '$1 == "#CHECKSUM" { print $3 }' "$vuls"`
+ recordedalg=`@AWK@ '$1 == "#CHECKSUM" { print $2 }' "$vuls"`
case "$recordedsum" in
"") errmsg="***WARNING*** No checksum found in $vuls"
;;
*) case "$recordedalg" in
"") errmsg="***WARNING*** No checksum algorithm found in $vuls file"
;;
- *) calcsum=`@AWK@ '$1 == "#CHECKSUM" || /\$NetBSD.*/ { next } { print }' $vuls | @DIGEST@ $recordedalg`
+ *) calcsum=`@AWK@ '$1 == "#CHECKSUM" || /\$NetBSD.*/ { next } { print }' "$vuls" | @DIGEST@ "$recordedalg"`
if [ "$recordedsum" != "$calcsum" ]; then
errmsg="***WARNING*** Checksum mismatch - recorded $recordedalg checksum \"$recordedsum\", calculated checksum \"$calcsum\""
fi
@@ -101,8 +102,8 @@
if @PKG_TOOLS_BIN@/pkg_info -qe "$pat"; then
echo Package `@PKG_TOOLS_BIN@/pkg_info -e "$pat"` has a \
- $type vulnerability, see $url
+ "$type" vulnerability, see "$url"
fi
-done < $vuls
+done < "$vuls"
exit 0
Home |
Main Index |
Thread Index |
Old Index