mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-16 10:00:12 +00: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