You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An added problem is that getPathVar is implemented using pathconf,
rather than using statfs directly. It seems that setting _LARGEFILE64_SOURCE
does not cause pathconf to use statfs64. This may be a glibc bug.
The text was updated successfully, but these errors were encountered:
Joeys reports at http://bugs.debian.org/773821:
This program can fail on a system with a large disk:
The problem is, getPathVar is using statfs, not statfs64.
Here's a C program that uses statfs64:
And strace shows just how large some of the fields are, which is why
statfs() overflows.
An added problem is that getPathVar is implemented using pathconf,
rather than using statfs directly. It seems that setting _LARGEFILE64_SOURCE
does not cause pathconf to use statfs64. This may be a glibc bug.
The text was updated successfully, but these errors were encountered: