[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: |
Sat, 2 May 2020 16:13:03 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 5/2/20 3:41 PM, Jonny Grant wrote:
> Is a more accurate strerror considered unreliable?
>
> Current:
> mkdir: cannot create directory ‘test’: File exists
>
> Proposed:
> mkdir: cannot create directory ‘test’: Is a directory
I don't understand this comment. As I understand it you're proposing a change to
the mkdir command not a change to the strerror library function, and the change
you're proposing would introduce a race condition to the mkdir command.
A better fix would be to change the mkdir system call so that it sets errno to
EISDIR in this situation. This would fix not only the mkdir utility, but also
lots of other programs; and it wouldn't introduce a race condition. So if you're
interested in getting the problem fixed, I suggest that you propose such a
change to the Linux kernel developers.
- 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, 2020/05/01
- 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 <=
- 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
- bug#41001: mkdir: cannot create directory ‘test’: File exists, Paul Eggert, 2020/05/10
bug#41001: mkdir: cannot create directory ‘test’: File exists, taehwan jeoung, 2020/05/05