Bail if we go beyond the directory size, not just if we hit it.

Certain ISO fs's (like the one for 4.4-RC1 disc1 on alpha)
trigger this, and we end up opening a null file name.  This causes us to get
a false match for "kernel.ko" when it does not exist.
This commit is contained in:
Andrew Gallatin 2001-08-23 17:08:26 +00:00
parent db106eff39
commit c18092b2fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82208

View File

@ -211,7 +211,7 @@ cd9660_open(path, f)
((char *) dp + isonum_711(dp->length));
off += isonum_711(dp->length);
}
if (off == dsize) {
if (off >= dsize) {
rc = ENOENT;
goto out;
}