From c18092b2fba2dbc67e4d2cb4ab910c97206f6084 Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Thu, 23 Aug 2001 17:08:26 +0000 Subject: [PATCH] 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. --- lib/libstand/cd9660.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libstand/cd9660.c b/lib/libstand/cd9660.c index 87ef6e92a005..da34ab915a64 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; }