diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-11-11 15:53:55 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-11-11 15:53:55 -0500 |
commit | eef8b966b366a11b69248d16f4f283d0dfbe3023 (patch) | |
tree | 3c1742ae2ddaf84b2eb2f850c00169be860819be /IkiWiki/Wrapper.pm | |
parent | 9a48669f1e9d83422781f6f175c3be8bce80cd26 (diff) | |
download | ikiwiki-eef8b966b366a11b69248d16f4f283d0dfbe3023.tar ikiwiki-eef8b966b366a11b69248d16f4f283d0dfbe3023.tar.gz |
O_CREATE needs mode
Diffstat (limited to 'IkiWiki/Wrapper.pm')
-rw-r--r-- | IkiWiki/Wrapper.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm index d7d7f65b8..7a2d4381a 100644 --- a/IkiWiki/Wrapper.pm +++ b/IkiWiki/Wrapper.pm @@ -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); } |