about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/fpathconf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-07-07 10:53:16 -0400
committerUlrich Drepper <drepper@gmail.com>2011-07-07 10:53:16 -0400
commit4e5f31c847982997c856f03bbc35134e9fd0f61f (patch)
tree218f0da37b738c1eb8cce3ce4fedd252e5a74cb0 /sysdeps/unix/sysv/linux/fpathconf.c
parentde283087c74f720cf8a7171972e72b5fa2b45e79 (diff)
downloadglibc-4e5f31c847982997c856f03bbc35134e9fd0f61f.tar.gz
glibc-4e5f31c847982997c856f03bbc35134e9fd0f61f.tar.xz
glibc-4e5f31c847982997c856f03bbc35134e9fd0f61f.zip
Handle ext4 in {,f}pathconf
ext4 has a higher LINK_MAX limit than ext2/3.  Unfortunately it is
not easy to distinguish the filesystems from userlevel.
Diffstat (limited to 'sysdeps/unix/sysv/linux/fpathconf.c')
-rw-r--r--sysdeps/unix/sysv/linux/fpathconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c
index 617a5a93cf..12a1e3221e 100644
--- a/sysdeps/unix/sysv/linux/fpathconf.c
+++ b/sysdeps/unix/sysv/linux/fpathconf.c
@@ -1,5 +1,5 @@
 /* Get file-specific information about descriptor FD.  Linux version.
-   Copyright (C) 1991,1995,1996,1998-2003,2008,2010
+   Copyright (C) 1991,1995,1996,1998-2003,2008,2010,2011
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -40,7 +40,7 @@ __fpathconf (fd, name)
   switch (name)
     {
     case _PC_LINK_MAX:
-      return __statfs_link_max (__fstatfs (fd, &fsbuf), &fsbuf);
+      return __statfs_link_max (__fstatfs (fd, &fsbuf), &fsbuf, NULL, fd);
 
     case _PC_FILESIZEBITS:
       return __statfs_filesize_max (__fstatfs (fd, &fsbuf), &fsbuf);