Re: 2.1.120 strnicmp patch breaks Joliet

Andrea Arcangeli (arcangeli@mbox.queen.it)
Sun, 6 Sep 1998 14:57:13 +0200 (CEST)


On Sun, 6 Sep 1998, Gordon Chaffee wrote:

>I can't see anything wrong with the new code, but I haven't looked

Why not add the new strnicmp() to the lib/string.c functions btw?

--- linux/fs/isofs/inode.c~ Sun Sep 6 14:53:43 1998
+++ linux/fs/isofs/inode.c Sun Sep 6 14:54:02 1998
@@ -134,7 +134,7 @@
unsigned char c1, c2;

c1 = 0; c2 = 0;
- while (len > 0) {
+ while (len-- > 0) {
c1 = *s1; c2 = *s2;
s1++; s2++;
if (!c1)
@@ -147,7 +147,6 @@
c2 = tolower(c2);
if (c1 != c2)
break;
- len--;
}
return (int)c1 - (int)c2;
}

Andrea[s] Arcangeli

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html