Red Hat Bugzilla – Bug 217240
namei ignores non-directory components instead of saying "Not a directory"
Last modified: 2007-11-30 17:11:50 EST
Description of problem:
If I pass namei a path "a/b", where "a" exists but is not a directory, namei
ignores the "a" component and tries to access "b" in the current directory. It
should complain that "a" is "Not a directory".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
$ mkdir foo
$ cd foo
$ touch a b
$ namei a/b
? a - Not a directory (20)
Perhaps it would be more correct to say ENOTDIR instead of ENOENT?