Bug 984951 - mkdir doesn't work if a regular file with the same name of the newly created directory exists
Summary: mkdir doesn't work if a regular file with the same name of the newly created ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-16 12:52 UTC by Renich Bon Ciric
Modified: 2013-07-16 13:31 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-16 13:31:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Renich Bon Ciric 2013-07-16 12:52:02 UTC
Description of problem:
You can't create a directory with the same name of a file.

Version-Release number of selected component (if applicable):
coreutils-8.21-11.fc19.x86_64

How reproducible:
create a file named "test" and, then, try creating a directory with the same name.

Steps to Reproduce:
1. cd /tmp
2. touch test
3. mkdir test

Actual results:
it says that the directory exists already

Expected results:
the two files should be differentiated by their mime and not compared only by name or whatever is happening.

Actually, a dir and a file with the same name should be allowed to coexists in the same level

Additional info:

Comment 1 Kamil Dudka 2013-07-16 13:31:05 UTC
The name can either map to an inode representing a directory, or an inode representing a regular file, but not both of them at a time.  This is by design of any (useful) file system we support.


Note You need to log in before you can comment on or make changes to this bug.