Fix pjfstest issue tests/rename/19.t
authorFedor Uporov <fsu@FreeBSD.org>
Thu, 26 Jan 2023 10:17:48 +0000 (13:17 +0300)
committerFedor Uporov <fsu@FreeBSD.org>
Sun, 29 Jan 2023 08:11:23 +0000 (11:11 +0300)
commit9ad2d4c4907da9c9edd4826219f6fa08544d31c4
treeab0d03bbeac3927b9bd301e6e6aa3c5c662f7347
parent344243fc9213f78b2af5f089cb8b9e0e60706705
Fix pjfstest issue tests/rename/19.t

The rename call with args like:
"./dir0/dir1/.." "./dir2" will cause MPASS failure.
The tmpfs_dir_lookup() does not accept names like
'.' and '..' for lookup. Move the '.' and '..' entry
check before tmpfs_dir_lookup() call.

Reviewed by:    kib
MFC after:      2 week
Differential revision:  https://reviews.freebsd.org/D38051
sys/fs/tmpfs/tmpfs_vnops.c