Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 354314 Details for
Bug 473084
x11-libs/libvdpau: the flashplayer anti-blue-people hack doesn't work on www-client/opera www-client/qupzilla
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
v2: break when done
libvdpau-0.6-libflashplayer.patch (text/plain), 954 bytes, created by
Jeroen Roovers (RETIRED)
on 2013-07-27 14:02:16 UTC
(
hide
)
Description:
v2: break when done
Filename:
MIME Type:
Creator:
Jeroen Roovers (RETIRED)
Created:
2013-07-27 14:02:16 UTC
Size:
954 bytes
patch
obsolete
>--- a/src/vdpau_wrapper.c >+++ b/src/vdpau_wrapper.c >@@ -301,31 +313,20 @@ > { > FILE *fp; > char buffer[1024]; >- int ret, i; > >- fp = fopen("/proc/self/cmdline", "r"); >+ fp = fopen("/proc/self/maps", "r"); > if (!fp) { > return; > } >- ret = fread(buffer, 1, sizeof(buffer) - 1, fp); >- fclose(fp); >- if (ret < 0) { >- return; >- } >- /* >- * Sometimes the file contains null between arguments. Wipe these out so >- * strstr doesn't stop early. >- */ >- for (i = 0; i < ret; i++) { >- if (buffer[i] == '\0') { >- buffer[i] = 'x'; >- } >- } >- buffer[ret] = '\0'; > >- if (strstr(buffer, "libflashplayer") != NULL) { >- _running_under_flash = 1; >+ while( fgets(buffer, sizeof(buffer), fp)) { >+ if (strstr(buffer, "libflashplayer") != NULL) >+ _running_under_flash = 1; >+ break; > } >+ >+ fclose(fp); >+ > } > > void init_config(void)
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 473084
:
353790
|
354314
|
364678