mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-05 12:40:55 +08:00
(__pathconf): Use path as first argument to statfs.
This commit is contained in:
parent
47754990f4
commit
ec86258b00
@ -51,7 +51,7 @@ __pathconf (const char *path, int name)
|
||||
struct statfs fsbuf;
|
||||
|
||||
/* Determine the filesystem type. */
|
||||
if (__statfs (fd, &fsbuf) < 0)
|
||||
if (__statfs (path, &fsbuf) < 0)
|
||||
/* not possible, return the default value. */
|
||||
return LINK_MAX;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user