CVSROOT ciabot,1.9,1.10

Nathaniel Smith <[email protected]> Mon, 02 Jun 2003 16:36:43 -0500
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/CVSROOT
In directory purcel:/tmp/cvs-serv8191

Modified Files:
	ciabot 
Log Message:
Add chmod a+w line, to make sure that new committers will always be able to overwrite saved commit message

Index: ciabot
===================================================================
RCS file: /cvs/fresco/CVSROOT/ciabot,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- ciabot	2 Jun 2003 11:52:29 -0000	1.9
+++ ciabot	2 Jun 2003 21:36:39 -0000	1.10
@@ -62,6 +62,10 @@
         # there are differences, so this is a different commit
         cat $tmpfile | /usr/sbin/sendmail -t
         mv $tmpfile /tmp/lastlog-$projectname
+# Following is not really a security hole; most someone could do is create
+# spurious duplicate commit notifications.  And it ensures that the next
+# person to commit will be able to overwrite this file if necessary:
+        chmod a+w /tmp/lastlog-$projectname
     else
         # it's just cvs spamming us from another directory
         rm $tmpfile
@@ -69,6 +73,10 @@
 else
     cat $tmpfile | /usr/sbin/sendmail -t
     mv $tmpfile /tmp/lastlog-$projectname
+# Following is not really a security hole; most someone could do is create
+# spurious duplicate commit notifications.  And it ensures that the next
+# person to commit will be able to overwrite this file if necessary:
+    chmod a+w /tmp/lastlog-$projectname
 fi
 
 echo "done."