Run makemandb with the normal 022 umask, not the restrictive 077. trunk
authorjoerg <joerg@NetBSD.org>
Wed, 15 Feb 2012 23:30:11 +0000
branchtrunk
changeset 209202 197528d442ca
parent 209201 48830e5093d6
child 209203 a6de3ab1d0ff
Run makemandb with the normal 022 umask, not the restrictive 077.
etc/daily
etc/weekly
--- a/etc/daily	Wed Feb 15 23:06:20 2012 +0000
+++ b/etc/daily	Wed Feb 15 23:30:11 2012 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: daily,v 1.80 2012/02/09 13:38:44 joerg Exp $
+#	$NetBSD: daily,v 1.81 2012/02/15 23:30:11 joerg Exp $
 #	@(#)daily	8.2 (Berkeley) 1/25/94
 #
 
@@ -294,7 +294,7 @@
 	if [ -f /etc/man.conf -a -x /usr/sbin/makemandb ]; then
 		echo ""
 		echo "Updating man page index:"
-		nice -n 5 /usr/sbin/makemandb
+		(umask 022; nice -n 5 /usr/sbin/makemandb)
 	fi
 fi
 
--- a/etc/weekly	Wed Feb 15 23:06:20 2012 +0000
+++ b/etc/weekly	Wed Feb 15 23:30:11 2012 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: weekly,v 1.25 2012/02/07 19:13:30 joerg Exp $
+#	$NetBSD: weekly,v 1.26 2012/02/15 23:30:11 joerg Exp $
 #	from: @(#)weekly	8.2 (Berkeley) 1/2/94
 #
 
@@ -94,7 +94,7 @@
 	echo ""
 	if [ -f /etc/man.conf -a -x /usr/sbin/makemandb ]; then
 		echo "Rebuilding man page index:"
-		nice -n 5 /usr/sbin/makemandb -f
+		(umask 022; nice -n 5 /usr/sbin/makemandb -f)
 	else
 		echo "Not rebuilding man page index"
 	fi