From nobody@FreeBSD.org  Sat Jun 23 10:17:26 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id D632616A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Jun 2007 10:17:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id C32CF13C4B0
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Jun 2007 10:17:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5NAHQ31038289
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Jun 2007 10:17:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l5NAHQEP038288;
	Sat, 23 Jun 2007 10:17:26 GMT
	(envelope-from nobody)
Message-Id: <200706231017.l5NAHQEP038288@www.freebsd.org>
Date: Sat, 23 Jun 2007 10:17:26 GMT
From: Ighighi <ighighi@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: fts(3): fts_pathlen & fts_namelen should be size_t,  not u_short
X-Send-Pr-Version: www-3.0

>Number:         113961
>Category:       kern
>Synopsis:       [fts] [patch] fts_pathlen & fts_namelen should be size_t,  not u_short
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 23 10:20:03 GMT 2007
>Closed-Date:    Thu Aug 23 15:01:33 GMT 2007
>Last-Modified:  Thu Aug 23 15:01:33 GMT 2007
>Originator:     Ighighi
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD orion 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jun 22 10:21:38 VET 2007     root@orion:/usr/obj/usr/src/sys/CUSTOM  i386

>Description:
Both fts_pathlen & fts_namelen should be of type size_t, not u_short.
NetBSD & OpenBSD already patched this bug. See:
http://mail-index.netbsd.org/netbsd-bugs/2006/03/28/0014.html
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gen/fts.c
http://cvsweb.netbsd.org/bsdweb.cgi/src/include/fts.h
http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/gen/fts.c
http://www.openbsd.org/cgi-bin/cvsweb/src/include/fts.h

Maybe some changes documented in the OpenBSD CVS should be applied as well.
>How-To-Repeat:
http://mail-index.netbsd.org/netbsd-bugs/2006/03/28/0014.html
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: yar 
State-Changed-When: Thu Aug 23 14:54:09 UTC 2007 
State-Changed-Why:  
Thank you for reporting this, but I think this PR should be just closed 
due to the following reasons: 

1. I'm working on the solution for fts(3) in CURRENT 
under PR bin/104458.  A number of too narrow types 
will be extended. 
2. I don't think this issue can be fixed in 6-STABLE 
because it would mean severe ABI breakage. 

I aim at fixing fts(3) for the approaching 7.0-RELEASE. 


Responsible-Changed-From-To: freebsd-bugs->yar 
Responsible-Changed-By: yar 
Responsible-Changed-When: Thu Aug 23 14:54:09 UTC 2007 
Responsible-Changed-Why:  
So I can see feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113961 
>Unformatted:
