From f79202d86694064acfe7487438d938253f4989f7 Mon Sep 17 00:00:00 2001 From: uebayasi Date: Fri, 13 Dec 2002 11:18:14 +0000 Subject: [PATCH] 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. --- security/audit-packages/files/download-vulnerability-list | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/security/audit-packages/files/download-vulnerability-list b/security/audit-packages/files/download-vulnerability-list index 10621e022662..a3a14901ddd7 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