]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Wrapper.pm
po(change): reset renamed pages status at a better time
[git.ikiwiki.info.git] / IkiWiki / Wrapper.pm
index d7d7f65b823e7ca06c90dc457bfb49490d59fe92..7a2d4381a079aaf5af71a3a4447486a76f5e0c9b 100644 (file)
@@ -59,7 +59,7 @@ EOF
                # the benefit of this optimisation.
                $check_commit_hook=<<"EOF";
        {
-               int fd=open("$config{wikistatedir}/commitlock", O_CREAT | O_RDWR);
+               int fd=open("$config{wikistatedir}/commitlock", O_CREAT | O_RDWR, 0666);
                if (fd != -1) {
                        if (flock(fd, LOCK_SH | LOCK_NB) != 0)
                                exit(0);
@@ -75,7 +75,7 @@ EOF
                # otherwise.
                $pre_exec=<<"EOF";
        {
-               int fd=open("$config{wikistatedir}/cgilock", O_CREAT | O_RDWR);
+               int fd=open("$config{wikistatedir}/cgilock", O_CREAT | O_RDWR, 0666);
                if (fd != -1)
                        flock(fd, LOCK_EX);
        }