Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jun 2006 19:48:52 +0100
From:      "mal content" <artifact.one@googlemail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Strange behaviour from mkdir()?
Message-ID:  <8e96a0b90606041148g5674ca31r74be2e1f9c79b640@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Is this expected behaviour (I'm using the mkdir utility
for the example, but the problem occurs using the system
call directly):

# mkdir .
mkdir: .: File exists
# mkdir ..
mkdir: ..: File exists

Now, the unusual one:

# mkdir /
mkdir: /: Is a directory

Shouldn't it say 'file exists'?

The mkdir() man page doesn't say that the function can set
errno to EISDIR and yet that's what's happening here.

FreeBSD 6.0-RELEASE-p7

MC



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8e96a0b90606041148g5674ca31r74be2e1f9c79b640>