net-tools/net-tools-1.60-manydevs.patch
cvsdist 0d01487395 auto-import changelog data from net-tools-1.60-4.src.rpm
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)
2004-09-09 09:09:46 +00:00

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)) {