[OpenBIOS] [PATCH 2/2] iso9660: Make name comparison case-insensitive

Andreas Färber andreas.faerber at web.de
Sun Sep 26 23:01:06 CEST 2010


Make seek_name() compare the path component in a case-insensitive way.
Should fix an issue reported by Mark.

Cc: Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk>
Cc: Laurent Vivier <laurent at vivier.eu>
Signed-off-by: Andreas Färber <andreas.faerber at web.de>
---
 fs/iso9660/iso9660_opendir.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/iso9660/iso9660_opendir.c b/fs/iso9660/iso9660_opendir.c
index 10cb89d..49eab4b 100644
--- a/fs/iso9660/iso9660_opendir.c
+++ b/fs/iso9660/iso9660_opendir.c
@@ -55,7 +55,7 @@ static struct iso_directory_record * seek_name(iso9660_VOLUME *volume,
 	while ((idr = iso9660_readdir(dir)) != NULL)
 	{
 		iso9660_name(volume, idr, name_buf);
-		if (strcmp(name, name_buf) == 0)
+		if (strcasecmp(name, name_buf) == 0)
 		{
 			result = idr_new(idr);
 			iso9660_closedir(dir);
-- 
1.7.3




More information about the OpenBIOS mailing list