K 10 svn:author V 3 kib K 8 svn:date V 27 2009-11-10T11:50:37.278495Z K 7 svn:log V 445 When rename("a", "b/.") is performed, target namei() call returns dvp == vp. Rename syscall does not check for the case, and at least ufs_rename() cannot deal with it. POSIX explicitely requires that both rename(2) and rmdir(2) return EINVAL when any of the pathes end in "/.". Detect the slashdot lookup for RENAME or REMOVE in lookup(), and return EINVAL. Reported by: Jim Meyering Tested by: simon, pho MFC after: 1 week END