Module Name: src
Committed By: jmmv
Date: Wed Jan 27 16:22:41 UTC 2010
Modified Files:
src/etc: daily
Log Message:
Reset the umask while refreshing the vulnerabilities database so that it
remains world-readable. Otherwise, it ends up with 600 permissions which
make it unusable for building pkgsrc packages as non-root.
Problem found by w...@.
To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/etc/daily
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/daily
diff -u src/etc/daily:1.74 src/etc/daily:1.75
--- src/etc/daily:1.74 Wed Jan 20 22:19:20 2010
+++ src/etc/daily Wed Jan 27 16:22:41 2010
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: daily,v 1.74 2010/01/20 22:19:20 jmmv Exp $
+# $NetBSD: daily,v 1.75 2010/01/27 16:22:41 jmmv Exp $
# @(#)daily 8.2 (Berkeley) 1/25/94
#
@@ -248,7 +248,8 @@
echo ""
echo "Fetching package vulnerabilities database:"
if checkyesno fetch_pkg_vulnerabilities; then
- pkg_admin -K ${pkgdb_dir} fetch-pkg-vulnerabilities -u
+ ( umask 022 && pkg_admin -K ${pkgdb_dir} \
+ fetch-pkg-vulnerabilities -u )
else
echo "fetch_pkg_vulnerabilities is set to NO in daily.conf(5)."
echo "You should set it to YES to enable vulnerability checks."