diff options
author | trasz <trasz@FreeBSD.org> | 2009-06-25 20:57:53 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2009-06-25 20:57:53 +0000 |
commit | 26f635f51fa012eb580d6a06f40c81be3eeb2e57 (patch) | |
tree | d11d127c34f389873f982f24055c1e33fd6ebc52 /lib/libc/posix1e/acl_set.c | |
parent | 5d2850ae03b3aae3b966028ceb9b1b04c7093197 (diff) | |
download | FreeBSD-src-26f635f51fa012eb580d6a06f40c81be3eeb2e57.zip FreeBSD-src-26f635f51fa012eb580d6a06f40c81be3eeb2e57.tar.gz |
Fix acl_set_fd(3) and acl_get_fd(3) for cases where the kernel doesn't know
anything about _PC_ACL_NFS4.
Diffstat (limited to 'lib/libc/posix1e/acl_set.c')
-rw-r--r-- | lib/libc/posix1e/acl_set.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_set.c b/lib/libc/posix1e/acl_set.c index 7086c4b..f9ee76d 100644 --- a/lib/libc/posix1e/acl_set.c +++ b/lib/libc/posix1e/acl_set.c @@ -108,7 +108,7 @@ int acl_set_fd(int fd, acl_t acl) { - if (fpathconf(fd, _PC_ACL_NFS4)) + if (fpathconf(fd, _PC_ACL_NFS4) == 1) return (acl_set_fd_np(fd, acl, ACL_TYPE_NFS4)); return (acl_set_fd_np(fd, acl, ACL_TYPE_ACCESS)); |