Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 161780 Details for
Bug 233001
[net-proxy/squid-3.0* fails to compile when -D_FORTIFY_SOURCE=2 is used (with gcc 4.3)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Working patch
b8856-updated.patch (text/plain), 1.45 KB, created by
Magnus Granberg
on 2008-07-30 23:44:05 UTC
(
hide
)
Description:
Working patch
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2008-07-30 23:44:05 UTC
Size:
1.45 KB
patch
obsolete
>--- lib/util.c.orig 2008-07-15 15:03:39.000000000 +1200 >+++ lib/util.c 2008-07-15 15:05:21.000000000 +1200 >@@ -931,8 +931,8 @@ > void > default_failure_notify(const char *message) > { >- write(2, message, strlen(message)); >- write(2, "\n", 1); >+ if(write(2, message, strlen(message))) {} >+ if(write(2, "\n", 1)) {} > abort(); > } > >--- src/StoreIOBuffer.h.orig 2008-07-15 15:04:05.000000000 +1200 >+++ src/StoreIOBuffer.h 2008-07-15 15:06:21.000000000 +1200 >@@ -68,8 +68,8 @@ > > void dump() const > { >- fwrite(data, length, 1, stderr); >- fwrite("\n", 1, 1, stderr); >+ if(fwrite(data, length, 1, stderr)) {} >+ if(fwrite("\n", 1, 1, stderr)) {} > } > > struct >--- src/comm.cc.orig 2008-07-15 15:04:25.000000000 +1200 >+++ src/comm.cc 2008-07-15 15:07:18.000000000 +1200 >@@ -2220,7 +2220,7 @@ > void CommIO::Initialise() { > /* Initialize done pipe signal */ > int DonePipe[2]; >- pipe(DonePipe); >+ if(pipe(DonePipe)) {} > DoneFD = DonePipe[1]; > DoneReadFD = DonePipe[0]; > fd_open(DoneReadFD, FD_PIPE, "async-io completetion event: main"); >--- src/tools.cc.orig 2008-07-15 15:04:37.000000000 +1200 >+++ src/tools.cc 2008-07-15 15:07:53.000000000 +1200 >@@ -152,7 +152,7 @@ > > snprintf(command, 256, "%s %s < %s", Config.EmailProgram, Config.adminEmail, filename); > >- system(command); /* XXX should avoid system(3) */ >+ if(system(command)) {} /* XXX should avoid system(3) */ > > unlink(filename); > }
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 233001
: 161780