ports/70202: Fix for ftp/tnftpd with new gcc 3.4

Rudolf Cejka cejkar at fit.vutbr.cz
Mon Aug 9 09:10:01 UTC 2004


>Number:         70202
>Category:       ports
>Synopsis:       Fix for ftp/tnftpd with new gcc 3.4
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 09 09:10:00 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Rudolf Cejka
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
FIT, Brno University of Technology, Czech Republic
>Environment:
>Description:
 
 There is a problem with compilation of ftp/tnftpd with new gcc 3.4.
 Simple patch to ftp/tnftpd/files/patch-src-logwtmp.c should help:
 
 --- patch-src-logwtmp.c.orig	Mon Aug  9 10:17:10 2004
 +++ patch-src-logwtmp.c	Mon Aug  9 10:16:27 2004
 @@ -43,7 +43,7 @@
  +				NI_NUMERICHOST);
  +			host = hostbuf;
  +			if (strlen(host) > UT_HOSTSIZE)
 -+				host[UT_HOSTSIZE] = '\0';
 ++				hostbuf[UT_HOSTSIZE] = '\0';
  +		}
  +	}
 
 As you see, change from host[] to hostbuf[] assignment right after
 host = hostbuf is semantically nop operation, but host is defined
 as const, so new gcc compiler issues an error when host is used, so
 we have to change it to hostbuf.
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list