namei() returns EISDIR for "/" (Re: svn commit: r203990 - head/lib/libc/sys)

Jaakko Heinonen jh at FreeBSD.org
Thu Mar 11 13:17:35 UTC 2010


On 2010-03-11, Alexander Best wrote:
> in sys/kern/vfs_syscalls.c:kern_rmdirat() there's still local code to check
> for "." and "/" after applying your patch. isn't this all being done by
> calling namei() now?

Looking at it quickly I think that the "." case is handled by lookup()
since r199137. However the VV_ROOT test is for all mount points not just
for "/".

-- 
Jaakko


More information about the freebsd-hackers mailing list