stat weirdness ?

Steve Robbins (steve@nyongwa.montreal.qc.ca)
Sat, 5 Jul 1997 18:14:46 -0400 (EDT)


Hi,

Just installed 2.1.43 today, and immediately UUCP started complaining
about permissions problems. I tracked it down to stat() behaving
strangely.

Suppose "file" is a file. Then:

stat("file/") returns ENOTDIR
whereas
stat("file/xxx") returns EPERM

On the other hand, if "file" has its execute bit on, then *both* properly
return ENOTDIR!

I'm afraid I'm not a kernel hacker, so I append no patch. I presume
the problem is in linux/fs/namei.c; I hope someone can figure it out from
this report.