]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: really fix cd9660 dirmatch
authortsoome <tsoome@FreeBSD.org>
Wed, 20 Feb 2019 21:07:09 +0000 (21:07 +0000)
committertsoome <tsoome@FreeBSD.org>
Wed, 20 Feb 2019 21:07:09 +0000 (21:07 +0000)
commitf6f04d1a3a536e1c4815f59b224964498de03ae3
tree2769ca8eaad8e4bdb9cb1e46be353702840950b7
parentbb9abf23e45c98e2051c6ec1bade58dd02d9cbb0
loader: really fix cd9660 dirmatch

The cd9660_open() does pass whole path to dirmatch() and we need to
compare only the current path component, not full path.

Additinally, skip over duplicate / (if any) and check if the last component
in the path was meant to be directory (having trailing /). If it is in fact
a file, error out.
stand/libsa/cd9660.c