This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/18675] New: fpathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes
- From: "jmaggard at netgear dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 15 Jul 2015 07:32:47 +0000
- Subject: [Bug libc/18675] New: fpathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes
- Auto-submitted: auto-generated
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.