Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 170501 Details for
Bug 116470
app-portage/portage-utils: qlist libstdc++-v3 does not work
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
portage-utils-libstdc++-v3.patch
portage-utils-libstdc++-v3.patch (text/plain), 1.26 KB, created by
Peter Volkov (RETIRED)
on 2008-11-02 06:50:58 UTC
(
hide
)
Description:
portage-utils-libstdc++-v3.patch
Filename:
MIME Type:
Creator:
Peter Volkov (RETIRED)
Created:
2008-11-02 06:50:58 UTC
Size:
1.26 KB
patch
obsolete
>=== modified file 'main.c' >--- main.c 2008-11-01 20:32:07 +0000 >+++ main.c 2008-11-02 06:49:07 +0000 >@@ -31,6 +31,7 @@ > > /* prototypes and such */ > static char eat_file(const char *file, char *buf, const size_t bufsize); >+int charmatch(const char *str1, const char *str2); > int rematch(const char *, const char *, int); > static char *rmspace(char *); > >@@ -202,6 +203,23 @@ > return ret; > } > >+int charmatch(const char *str1, const char *str2) >+{ >+ if ((str1 == NULL) || (str2 == NULL)) >+ return EXIT_FAILURE; >+ >+ while (*str1 != 0) { >+ /* if str2==0 but str1!=0 we'll return and so it's >+ * impossible to touch match++ address here */ >+ if (*str1 != *str2) >+ return 1; >+ str1++; >+ str2++; >+ } >+ >+ return 0; >+} >+ > int rematch(const char *regex, const char *match, int cflags) > { > regex_t preg; > >=== modified file 'qlist.c' >--- qlist.c 2008-11-01 20:32:07 +0000 >+++ qlist.c 2008-11-01 20:32:31 +0000 >@@ -223,6 +223,10 @@ > if ((strcmp(name, strstr(swap, "/") + 1) == 0) || (strcmp(name, strstr(buf, "/") + 1) == 0)) > break; > } else { >+ if (charmatch(name, buf) == 0) >+ break; >+ if (charmatch(name, de[x]->d_name) == 0) >+ break; > if (rematch(name, buf, REG_EXTENDED) == 0) > break; > if (rematch(name, de[x]->d_name, REG_EXTENDED) == 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 116470
:
170478
| 170501