Opened 10 years ago

Last modified 5 months ago

#1146 new defect

create-temporary-file and create-temporary-directory are subject to race conditions — at Version 1

Reported by: Mario Domenech Goulart Owned by:
Priority: major Milestone: 6.0.0
Component: core libraries Version: 4.10.x
Keywords: create-temporary-file, create-temporary-directory Cc:
Estimated difficulty: medium

Description (last modified by Mario Domenech Goulart)

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.

Change History (1)

comment:1 Changed 10 years ago by Mario Domenech Goulart

Description: modified (diff)
Note: See TracTickets for help on using tickets.