diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-03-08 01:57:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-03-08 01:57:18 +0000 |
commit | 443db178899d14a9c54248d95675fee44d718e05 (patch) | |
tree | 3079bf3054ad74cf0a6fb56ae384bca8da552819 /sysdeps/unix/sysv/linux/fpathconf.c | |
parent | 78c2bf0eb433515af766d5bbb77901b7c8f9a8cc (diff) | |
download | glibc-443db178899d14a9c54248d95675fee44d718e05.tar.gz glibc-443db178899d14a9c54248d95675fee44d718e05.tar.xz glibc-443db178899d14a9c54248d95675fee44d718e05.zip |
[BZ #5778]
* sysdeps/unix/sysv/linux/pathconf.h: Declare __statfs_chown_restricted. * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted for _PC_CHOWN_RESTRICTED. * sysdeps/unix/sysv/linux/pathconf.c: Likewise. Implement __statfs_chown_restricted. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change _POSIX_CHOWN_RESTRICTED value to zero. 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/fpathconf.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/fpathconf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c index c1cdb1b899..2701c9ec99 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-2002,2003 Free Software Foundation, Inc. + Copyright (C) 1991,1995,1996,1998-2003,2008 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -45,6 +45,9 @@ __fpathconf (fd, name) case _PC_2_SYMLINKS: return __statfs_symlinks (__fstatfs (fd, &fsbuf), &fsbuf); + case _PC_CHOWN_RESTRICTED: + return __statfs_chown_restricted (__fstatfs (fd, &fsbuf), &fsbuf); + default: return posix_fpathconf (fd, name); } |