0d01487395
Fri Apr 12 2002 Jeremy Katz <katzj@redhat.com> - fix nstrcmp() to be correct in the case where there are many devices of the same type, eg, "eth10" > "eth1" (#61436)
14 lines
284 B
Diff
14 lines
284 B
Diff
--- lib/nstrcmp.c.bak Fri Apr 12 00:15:01 2002
|
|
+++ lib/nstrcmp.c Fri Apr 12 00:15:29 2002
|
|
@@ -16,8 +16,8 @@
|
|
b++;
|
|
}
|
|
if (isdigit(*a)) {
|
|
- if (!isdigit(*b))
|
|
- return -1;
|
|
+ if (!isdigit(*b))
|
|
+ return 1;
|
|
while (a > astr) {
|
|
a--;
|
|
if (!isdigit(*a)) {
|