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): util-linux-2.13-0.44 How reproducible: Always Steps to Reproduce: $ mkdir foo $ cd foo $ touch a b $ namei a/b Actual output: f: a/b - a - b Expected output: f: a/b ? a - Not a directory (20)
Perhaps it would be more correct to say ENOTDIR instead of ENOENT?