FreeBSD Bugzilla – Attachment 45553 Details for
Bug 70200
net/yaph patch: fix build under -current
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
yaph-init.c.patch
yaph-init.c.patch (text/plain), 1.08 KB, created by
Patrick MARIE
on 2004-08-09 10:00:44 UTC
(
hide
)
Description:
yaph-init.c.patch
Filename:
MIME Type:
Creator:
Patrick MARIE
Created:
2004-08-09 10:00:44 UTC
Size:
1.08 KB
patch
obsolete
>--- /usr/ports/net/yaph/files/patch-yaph::init.c Fri Oct 10 07:35:54 2003 >+++ ./files/patch-yaph::init.c Mon Aug 9 10:41:56 2004 >@@ -1,11 +1,30 @@ >---- yaph/init.c.orig Sat Jun 14 14:52:31 2003 >-+++ yaph/init.c Sat Jun 14 14:52:41 2003 >-@@ -127,7 +127,7 @@ >+--- yaph/init.c.orig Sun Feb 9 07:33:04 2003 >++++ yaph/init.c Mon Aug 9 10:41:24 2004 >+@@ -105,6 +105,7 @@ >+ globals->content_data=malloc(1024*8); >+ if(!globals->content_data) >+ exit_error(errno); >++bzero(globals->content_data, 1024 * 8); >+ globals->content_request=malloc(1024*8); >+ if(!globals->content_request) >+ exit_error(errno); >+@@ -127,8 +128,9 @@ > FILE *cnf=NULL; > char buff[1024]; > if(!(cnf=fopen("./yaph.conf","rb"))) > - if(!(cnf=fopen("/etc/yaph.conf","rb"))) >-+ if(!(cnf=fopen(PREFIX "/etc/yaph.conf","rb"))) >- goto no_file; >+- goto no_file; >++ cnf=fopen(PREFIX "/etc/yaph.conf","rb"); >++ >++ if(cnf != NULL) > while(fgets(buff,sizeof(buff),cnf)) > { >+ if(buff[strspn(buff," ")]!='#') >+@@ -200,7 +202,6 @@ >+ } >+ } >+ } >+- no_file: >+ } >+ >+ // ------ open files
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 70200
: 45553