1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-16 19:08:38 +01:00
8chan 3312e38f07 Change from fopen/flock to dio_open/dio_fcntl in file_write
8chan uses NFS and flock() does not work over NFS. See http://0pointer.de/blog/projects/locking.html for more information.

Without proper file locking, race conditions are possible in ?/settings and other pages. The one in ?/settings is particularly bad, too many successive writes can cause a PHP file with bad syntax to be written which breaks an entire board and many scripts that call openBoard().

You need to install the dio.so module if you merge this commit.
2015-02-25 17:12:25 -08:00
..
2015-02-20 23:16:38 -08:00
2014-12-01 20:36:11 +01:00
2014-09-23 23:22:41 +00:00
2013-09-08 17:01:55 +10:00
2015-02-16 16:17:18 -08:00
2013-09-07 03:09:52 +10:00
2014-09-29 07:30:45 +09:00
2015-01-21 23:51:48 -08:00