From: pcanterino <> Date: Thu, 5 Aug 2004 10:06:49 +0000 (+0000) Subject: Removed the race condition in file_create() which could set a file to 0 if it X-Git-Tag: version_2_0~2 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/c618f5d8c66b51ec021df5aea7caa49f50d00772?ds=sidebyside;hp=c618f5d8c66b51ec021df5aea7caa49f50d00772 Removed the race condition in file_create() which could set a file to 0 if it already exist. I wanted to use O_EXCL, but `perldoc -f sysopen` doesn't say that O_EXCL is avaiable in _every_ system. So I use O_RDONLY and O_CREAT. Additionally, I replaced all the open() calls in this module by sysopen() calls. ---