Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2008 14:38:51 -0400 (EDT)
From:      "Aryeh M. Friedman" <aryeh@flosoft.no-ip.biz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/122765: fdopendir(3) is needed
Message-ID:  <200804141838.m3EIcpKl077558@flosoft.no-ip.biz>
Resent-Message-ID: <200804141840.m3EIe265021317@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         122765
>Category:       bin
>Synopsis:       fdopendir(3) is needed
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 14 18:40:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Aryeh M. Friedman <aryeh.friedman@gmail.com>
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
FloSoft Systems
>Environment:
System: FreeBSD flosoft.no-ip.biz 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sun Apr 13 19:01:46 EDT 2008 root@flosoft.no-ip.biz:/usr/obj/usr/src/sys/MONSTER amd64


>Description:
	Even though the base system does not require fdopen(3) but many ports do
>How-To-Repeat:
	N/A
>Fix:

	Wrap fdopendir(3) around fdopen(3)... in general for all these ports just removing "dir" from the call works something like this should suffice:

	FILE *fdopendir(int fd)
	{
		return fopen(fd);
	}
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804141838.m3EIcpKl077558>