]> git.p6c8.net - devedit.git/commit
Removed the race condition in file_create() which could set a file to 0 if it
authorpcanterino <>
Thu, 5 Aug 2004 10:06:49 +0000 (10:06 +0000)
committerpcanterino <>
Thu, 5 Aug 2004 10:06:49 +0000 (10:06 +0000)
commitc618f5d8c66b51ec021df5aea7caa49f50d00772
tree54807e84bcddf87e4dee81c20feb9cb5e9080e39
parent4b6ea0ada25839464b9bd7d2eec2e97567ab1626
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.
modules/File/Access.pm

patrick-canterino.de