![]() | |||||||||||||
Messages in this thread Patch in this message |
[Bcc:d to linux-patches@samba.anu.edu.au]
It makes no sense to compare tolower(*s1) to tolower(*s2) all over the
place and then to just forget about that and compare the raw characters for
the result...
--- linux/fs/isofs/inode.c.dist-2.1.120-2 Sun Aug 30 21:17:05 1998
+++ linux/fs/isofs/inode.c Sun Aug 30 21:20:32 1998
@@ -137,7 +137,7 @@
}
if (*s1 == 0 && *s2 == 0) return 0;
if (*s1 && *s2) {
- if (*s1 > *s2) return 1;
+ if (tolower(*s1) > tolower(*s2)) return 1;
return -1;
}
if (*s1) return 1;
Now compiling 2.1.120pre2 (with the above patch).
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile +56 32 672616
-
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.altern.org/andrebalsa/doc/lkml-faq.html
| ||||||||||||
| Last update: 2005-03-22 13:44 [from the cache] ©2003-2008 | |||||||||||||