[Popcon-commits] cvs commit to popularity-contest/debian by pere
popcon-commits@lists.alioth.debian.org
popcon-commits@lists.alioth.debian.org
Sun, 25 Jan 2004 12:25:01 +0100
Update of /cvsroot/popcon/popularity-contest/debian
In directory quantz:/tmp/cvs-serv13359
Modified Files:
changelog postinst
Log Message:
Make sure /etc/popularity-contest.conf is readable by user nobody, no matter the umask of root.
Index: changelog
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/debian/changelog,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- changelog 25 Jan 2004 08:46:03 -0000 1.33
+++ changelog 25 Jan 2004 11:24:59 -0000 1.34
@@ -3,6 +3,8 @@
* Petter Reinholdtsen
- Added Japanese debconf translation thanks to Kenshi
Moto. (Closes: #229538)
+ - Make sure /etc/popularity-contest.conf is readable by user
+ nobody, no matter the umask of root.
-- Petter Reinholdtsen <pere@debian.org> Sun, 25 Jan 2004 09:44:44 +0100
Index: postinst
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/debian/postinst,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- postinst 21 Jan 2004 23:29:41 -0000 1.3
+++ postinst 25 Jan 2004 11:24:59 -0000 1.4
@@ -92,6 +92,8 @@
#
PARTICIPATE=$PARTICIPATE
EOF
+ # Make sure user nobody can read the file.
+ chmod a+r $conffile
}
case "$1" in
@@ -104,6 +106,8 @@
if sed "s/^PARTICIPATE=.*$/PARTICIPATE=$PARTICIPATE/; s/^MAILTO=.*$/MAILTO=\"$MAILTO\"/" < $conffile > $conffile.new &&
! cmp $conffile $conffile.new > /dev/null; then
mv $conffile.new $conffile
+ # Make sure user nobody can read the file.
+ chmod a+r $conffile
else
rm $conffile.new
fi