summaryrefslogtreecommitdiffstats
path: root/lib/libstand/cd9660.c
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2001-08-23 17:08:26 +0000
committergallatin <gallatin@FreeBSD.org>2001-08-23 17:08:26 +0000
commitdf8be8c104e1c99b8198305e3a574ccfa40d04cf (patch)
tree3d9a46386d80c89401f9d7e1416902e955eacd1b /lib/libstand/cd9660.c
parent1dabef88453571cb8dd7bd9fe90813f7dfb937a7 (diff)
downloadFreeBSD-src-df8be8c104e1c99b8198305e3a574ccfa40d04cf.zip
FreeBSD-src-df8be8c104e1c99b8198305e3a574ccfa40d04cf.tar.gz
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.
Diffstat (limited to 'lib/libstand/cd9660.c')
-rw-r--r--lib/libstand/cd9660.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/cd9660.c b/lib/libstand/cd9660.c
index 87ef6e9..da34ab9 100644
--- a/lib/libstand/cd9660.c
+++ b/lib/libstand/cd9660.c
@@ -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;
}
OpenPOWER on IntegriCloud