From yssu@ccca.nctu.edu.tw  Mon Jun 18 19:33:51 2001
Return-Path: <yssu@ccca.nctu.edu.tw>
Received: from ccca.nctu.edu.tw (CCCA.NCTU.edu.tw [140.113.27.50])
	by hub.freebsd.org (Postfix) with ESMTP id C059737B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Jun 2001 19:33:49 -0700 (PDT)
	(envelope-from yssu@ccca.nctu.edu.tw)
Received: by ccca.nctu.edu.tw (Postfix, from userid 1098)
	id 97D6715557; Tue, 19 Jun 2001 10:33:43 +0800 (CST)
Message-Id: <20010619023343.97D6715557@ccca.nctu.edu.tw>
Date: Tue, 19 Jun 2001 10:33:43 +0800 (CST)
From: Yen-Shuo Su <yssu@ccca.nctu.edu.tw>
Reply-To: Yen-Shuo Su <yssu@ccca.nctu.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ports/www/webalizer: Support more than 80 chars string configuration
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28268
>Category:       ports
>Synopsis:       ports/www/webalizer: Support more than 80 chars string configuration
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 18 19:40:00 PDT 2001
>Closed-Date:    Sat Jun 23 06:02:35 PDT 2001
>Last-Modified:  Sat Jun 23 06:03:05 PDT 2001
>Originator:     Yen-Shuo Su
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Campus Computer Communication Association
>Environment:
System: FreeBSD CCCA.nctu.edu.tw 4.3-STABLE FreeBSD 4.3-STABLE #3: Thu Jun 14 16:19:14 CST 2001 root@CCCA.nctu.edu.tw:/admin/obj/admin/src/sys/CCCA i386


>Description:

	ports/www/webalizer: Support more than 80 chars string configuration

>How-To-Repeat:

	Use more than 80 char line in configuration file

>Fix:

diff -curN work/webalizer-2.01-06/linklist.c webalizer-2.01-06/linklist.c
--- work/webalizer-2.01-06/linklist.c   Tue Jun 19 10:29:50 2001
+++ webalizer-2.01-06/linklist.c        Tue Jun 19 10:13:40 2001
@@ -190,12 +190,12 @@
 int add_glist(char *str, GLISTPTR *list)
 {
    GLISTPTR newptr,cptr,pptr;
-   char temp_buf[80];
+   char temp_buf[512];
    char *name=temp_buf;

    /* make local copy of string */
-   strncpy(temp_buf,str,79);
-   temp_buf[79]=0;
+   strncpy(temp_buf,str,511);
+   temp_buf[511]=0;

    while (!isspace((unsigned char)*name)&&*name!=0) name++;
    if (*name==0) name=temp_buf;
diff -curN work/webalizer-2.01-06/linklist.h webalizer-2.01-06/linklist.h
--- work/webalizer-2.01-06/linklist.h   Fri Sep 29 11:50:30 2000
+++ webalizer-2.01-06/linklist.h        Tue Jun 19 10:15:31 2001
@@ -1,12 +1,12 @@
 #ifndef _LINKLIST_H
 #define _LINKLIST_H

-struct nlist {  char string[80];           /* list struct for HIDE items   */
+struct nlist {  char string[256];           /* list struct for HIDE items   */
               struct nlist *next; };
 typedef struct nlist *NLISTPTR;

-struct glist {  char string[80];           /* list struct for GROUP items  */
-                char name[80];
+struct glist {  char string[256];           /* list struct for GROUP items  */
+                char name[256];
               struct glist *next; };
 typedef struct glist *GLISTPTR;

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->dinoex 
Responsible-Changed-By: dwcjr 
Responsible-Changed-When: Tue Jun 19 20:47:32 PDT 2001 
Responsible-Changed-Why:  
Over to maintainer(who should probably update his MAINTAINER= in this port) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28268 
State-Changed-From-To: open->closed 
State-Changed-By: dinoex 
State-Changed-When: Sat Jun 23 06:02:35 PDT 2001 
State-Changed-Why:  
Committed with changes, so the limit is configureable 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28268 
>Unformatted:
