This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15514] New: pathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes


http://sourceware.org/bugzilla/show_bug.cgi?id=15514

             Bug #: 15514
           Summary: pathconf(_PC_NAME_MAX) fails against large filesystems
                    for 32bit processes
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: critical
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: guenther@gmail.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


pathconf(_PC_NAME_MAX) is implemented on top of statfs().  The 32bit version
therefore fails with the error EOVERFLOW if the filesystem that the path is on
is so large that its block count cannot be returned by the non-LFS version of
statfs().

Calls to statfs() that are completely internal to libc, such as this one,
should use the LFS version, statfs64().

According to a quick scan of the glibc source, other calls that might be
affected include posix_openpt() and (maybe) shm_open().

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]