ALT Linux Bugzilla
– Attachment 3212 Details for
Bug 18493
Проблема со сравнением версий содержащих буквы
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
fix for rpmvercmp
diff (text/plain), 582 bytes, created by
Kirill A. Shutemov
on 2009-01-12 22:57:19 MSK
(
hide
)
Description:
fix for rpmvercmp
Filename:
MIME Type:
Creator:
Kirill A. Shutemov
Created:
2009-01-12 22:57:19 MSK
Size:
582 bytes
patch
obsolete
>diff --git a/rpmdb/rpmvercmp.c b/rpmdb/rpmvercmp.c >index 5ac54dd..1539ae5 100644 >--- a/rpmdb/rpmvercmp.c >+++ b/rpmdb/rpmvercmp.c >@@ -34,8 +34,10 @@ int rpmvercmp(const char * a, const char * b) > > /* loop through each version segment of str1 and str2 and compare them */ > while (*one && *two) { >- while (*one && !xisalnum(*one)) one++; >- while (*two && !xisalnum(*two)) two++; >+ if ((*one && !xisalnum(*one)) && (*two && !xisalnum(*two))) { >+ while (*one && !xisalnum(*one)) one++; >+ while (*two && !xisalnum(*two)) two++; >+ } > > if ( !*one && !*two ) > return 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18493
: 3212