]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Special case the error reporting when errno is ENOTDIR or ENOENT.
authoralfred <alfred@FreeBSD.org>
Sun, 14 Jan 2001 12:08:50 +0000 (12:08 +0000)
committeralfred <alfred@FreeBSD.org>
Sun, 14 Jan 2001 12:08:50 +0000 (12:08 +0000)
commit1e926698897866d89b4a54e28f0e15c08d08c7ee
tree5aa33bdf6ae6a2e362081f042e77a91b4292d736
parentffc1b6907f69a0ba44c97ce1d8d153adac60473d
Special case the error reporting when errno is ENOTDIR or ENOENT.

This makes "mkdir /nonexistant/foo" complain that /nonexistant
doesn't exist rather than /nonexistant/foo which doesn't make much
sense.

Submitted (in a different form) by: W.H.Scholten <whs@xs4all.nl>
bin/mkdir/mkdir.c