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/18675] New: fpathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes


https://sourceware.org/bugzilla/show_bug.cgi?id=18675

            Bug ID: 18675
           Summary: fpathconf(_PC_NAME_MAX) fails against large
                    filesystems for 32bit processes
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: jmaggard at netgear dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 8439
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8439&action=edit
Proposed fix

Basically identical to bug #15514.

fpathconf(_PC_NAME_MAX) is implemented on top of fstatfs().  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
fstatfs().

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

-- 
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]