[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-janitors] #1146: create-temporary-file and create-temporary
From: |
Chicken Trac |
Subject: |
Re: [Chicken-janitors] #1146: create-temporary-file and create-temporary-directory are subject to race conditions |
Date: |
Tue, 05 Aug 2014 14:47:21 -0000 |
#1146: create-temporary-file and create-temporary-directory are subject to race
conditions
-----------------------------+----------------------------------------------
Reporter: mario | Owner:
Type: defect | Status: new
Priority: major | Milestone: someday
Component: core libraries | Version: 4.10.x
Resolution: | Keywords: create-temporary-file,
create-temporary-directory
-----------------------------+----------------------------------------------
Description changed by mario:
Old description:
> Both use the non-atomic strategy of checking if a file system object
> exist then act, which may lead to race conditions.
>
> {{{create-temporary-directory}}} is specially more fragile because it
> uses {{{directory-exists?}}} to check if a file system object exists.
> So, for example, if a regular file with the same name as the attempted
> one exists, create-temporary-directory will fail.
New description:
Both use the non-atomic strategy of checking if a file system object
exists then act, which may lead to race conditions.
{{{create-temporary-directory}}} is specially more fragile because it uses
{{{directory-exists?}}} to check if a file system object exists. So, for
example, if a regular file with the same name as the attempted one exists,
create-temporary-directory will fail.
--
--
Ticket URL: <http://bugs.call-cc.org/ticket/1146#comment:1>
CHICKEN Scheme <http://www.call-with-current-continuation.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.