summaryrefslogtreecommitdiff
path: root/security/audit-packages
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2002-12-13 11:18:14 +0000
committeruebayasi <uebayasi@pkgsrc.org>2002-12-13 11:18:14 +0000
commitf79202d86694064acfe7487438d938253f4989f7 (patch)
treed3bae9a5d381b181d359b512a7087d343917c9e5 /security/audit-packages
parent10c57e570ad2ec1d1fbc92583ce97d08608e3a6c (diff)
downloadpkgsrc-f79202d86694064acfe7487438d938253f4989f7.tar.gz
Change directory before ${FETCH_CMD} as mk/bsd.pkg.mk does. This avoids a
fetch error if FETCH_CMD is e.g. ``curl -O''. No functional changes.
Diffstat (limited to 'security/audit-packages')
-rw-r--r--security/audit-packages/files/download-vulnerability-list7
1 files changed, 4 insertions, 3 deletions
diff --git a/security/audit-packages/files/download-vulnerability-list b/security/audit-packages/files/download-vulnerability-list
index 10621e02266..a3a14901ddd 100644
--- a/security/audit-packages/files/download-vulnerability-list
+++ b/security/audit-packages/files/download-vulnerability-list
@@ -1,5 +1,5 @@
#! ${SH}
-# $NetBSD: download-vulnerability-list,v 1.12 2002/07/04 23:51:28 wiz Exp $
+# $NetBSD: download-vulnerability-list,v 1.13 2002/12/13 11:18:14 uebayasi Exp $
if [ ! -e ${PKGVULNDIR} ]; then
echo "Creating ${PKGVULNDIR}"
@@ -7,9 +7,10 @@ if [ ! -e ${PKGVULNDIR} ]; then
fi
VUL_SOURCE="ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/vulnerabilities"
-NEW_VUL_LIST=${PKGVULNDIR}/vulnerabilities.$$
-EXIST_VUL_LIST=${PKGVULNDIR}/vulnerabilities
+NEW_VUL_LIST=vulnerabilities.$$
+EXIST_VUL_LIST=vulnerabilities
+cd ${PKGVULNDIR}
${FETCH_CMD} -o ${NEW_VUL_LIST} ${VUL_SOURCE}
existsize=0
newsize=0