Re: Bug in mkdir: Misleading Error Message

2004-09-07 Thread Dmytro Taranovsky
Paul Eggert wrote: > Unfortunately nicening up the messages wouldn't be that easy, as the > most natural implementation of mkdir is to use the mkdir system call > and to use perror when it fails. As far as I know, mkdir prints "No such file or directory" only when the parent directory does not exi

Re: Bug in mkdir: Misleading Error Message

2004-09-07 Thread Paul Eggert
Dmytro Taranovsky <[EMAIL PROTECTED]> writes: > As far as I know, mkdir prints "No such file or directory" only when the > parent directory does not exist Only if by "not exist" you mean "mkdir() fails with errno==ENOENT", which is a bit circular. For example: $ rm -f x y $ ln -s x y $