pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/audit-packages Check we can...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cd437ff27e78
branches: trunk
changeset: 531192:cd437ff27e78
user: adrianp <adrianp%pkgsrc.org@localhost>
date: Tue Jul 24 18:57:02 2007 +0000
description:
Check we can write to ${PKGVULNDIR} before attempting a download.
Reported by wiz@
diffstat:
pkgtools/pkg_install/files/audit-packages/download-vulnerability-list.sh.in | 11 +++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r d10fb2c126be -r cd437ff27e78 pkgtools/pkg_install/files/audit-packages/download-vulnerability-list.sh.in
--- a/pkgtools/pkg_install/files/audit-packages/download-vulnerability-list.sh.in Tue Jul 24 18:27:37 2007 +0000
+++ b/pkgtools/pkg_install/files/audit-packages/download-vulnerability-list.sh.in Tue Jul 24 18:57:02 2007 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
-# $NetBSD: download-vulnerability-list.sh.in,v 1.2 2007/07/16 13:23:02 joerg Exp $
+# $NetBSD: download-vulnerability-list.sh.in,v 1.3 2007/07/24 18:57:02 adrianp Exp $
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -138,6 +138,15 @@
fi
fi
+echo "audit-packages" > ${PKGVULNDIR}/.cookie
+
+if [ -f ${PKGVULNDIR}/.cookie ]; then
+ rm -f ${PKGVULNDIR}/.cookie
+else
+ echo "***ERROR*** Can't write to: ${PKGVULNDIR}"
+ exit 1
+fi
+
if [ ! "x${FETCH_PROTO}" = "xhttp" -a ! "x${FETCH_PROTO}" = "xftp" ]; then
echo "***ERROR*** Unknown FETCH_PROTO specified - Only http and ftp are currently supported."
exit 1
Home |
Main Index |
Thread Index |
Old Index