[PATCH][BZ 15514] Use statvfs64() for pathconf(_PC_NAME_MAX).

Ondřej Bílka neleai@seznam.cz
Tue Apr 8 15:10:00 GMT 2014


On Mon, Apr 07, 2014 at 09:56:12PM +0100, Peter TB Brett wrote:
> 
> pathconf(_PC_NAME_MAX) was implemented on top of statfs().  The 32bit
> version therefore fails EOVERFLOW if the filesystem blockcount is
> sufficiently large.
> 
> Most pathconf() queries use statvfs64(), which avoids this issue.  This
> patch modifies pathconf(_PC_NAME_MAX) to do likewise.
> 
>                                          Peter
> 
> P.S. I haven't completed FSF copyright assignment.
> 
Looks ok for me. 

Copyright assignment is not needed yet. As this is under 15 lines 
its not legally significant.

http://www.gnu.org/prep/maintain/maintain.html#Legally-Significant



More information about the Libc-alpha mailing list