Konstantin Belousov 88e6f61a19 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 <jim meyering net>
Tested by:	simon, pho
MFC after:	1 week
2009-11-10 11:50:37 +00:00
..
2009-10-27 11:01:15 +00:00
2009-05-18 12:03:43 +00:00
2009-05-27 16:36:54 +00:00
2009-05-29 14:25:51 +00:00
2009-08-23 09:55:06 +00:00
2009-10-27 11:01:15 +00:00
2009-10-27 11:01:15 +00:00
2009-05-26 09:19:21 +00:00
2009-11-04 08:25:58 +00:00
2009-11-08 09:54:25 +00:00