[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Cupt-devel] Bug#675760: E: unable to create the directory '/'



Yes, this problem is definitely KFreeBSD-specific. Cupt calls mkdir('/')
and expects EEXIST but get EISDIR [1]. This is not allowed by POSIX [2]
so I believe this is a bug in kfreebsd kernels.

I also guess I will have to implement a workaround for this but before
let's see what KFreeBSD maintainers say.
[1]
| (squeeze)jackyf@asdfasdf:~$ mkdir /
| mkdir: cannot create directory `/': Is a directory
[2] http://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html

Please note, that this behaviour affects only "mkdir /",
"mkdir /home" or "mkdir /bin" return "File exists".

Effectively, you cannot create "/" under any system.

Petr


Reply to: