Change cache file permissions 600.
Sun Feb 19 17:42:23 UTC 2006 Alberto Bertogli <albertogli@telpin.com.ar>
* Change cache file permissions 600.
Change cache file permissions to 600. This should work on Windows too because
the bits are ignored, according to python's documentation.
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2014-04-12 07:30:22.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2014-04-12 07:30:22.000000000 +0000
@@ -467,6 +467,7 @@
fname = self.basedir + '/.' + self.fname + '-' + pid
self.file = open(fname, 'w')
self.mode = 'w'
+ os.chmod(fname, stat.S_IRUSR | stat.S_IWUSR)
# step over stdout so when "print" tries to write
# output, we get it first