[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41001: mkdir: cannot create directory ‘test’: File exists
From: |
Paul Eggert |
Subject: |
bug#41001: mkdir: cannot create directory ‘test’: File exists |
Date: |
Fri, 1 May 2020 13:32:19 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 5/1/20 1:21 PM, Jonny Grant wrote:
> yes, the fix pretty trivial for mkdir as you highlight EISDIR:
> stat(), S_ISDIR(sb.st_mode), and set errno to EISDIR or output
> strerror(EISDIR)
That would introduce a race condition, and wouldn't behave correctly if some
other process changes the destination from a regular file to a directory between
the time we call mkdir and the time that we call stat.
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/01
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Eric Blake, 2020/05/01
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/01
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Paul Eggert, 2020/05/01
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/01
- bug#41001: mkdir: cannot create directory ‘test’: File exists,
Paul Eggert <=
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/02
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Paul Eggert, 2020/05/02
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/02
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Paul Eggert, 2020/05/02
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/03
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Bob Proulx, 2020/05/04
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/05
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Eric Blake, 2020/05/05
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Jonny Grant, 2020/05/07
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Eric Blake, 2020/05/07