diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2009-06-25 20:57:53 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2009-06-25 20:57:53 +0000 |
commit | c3380d406a7f4568007a2fe1c853b18fb483891e (patch) | |
tree | d11d127c34f389873f982f24055c1e33fd6ebc52 | |
parent | 5a6dafe63ed78d7161799115b60f95f2a56be581 (diff) |
Notes
-rw-r--r-- | lib/libc/posix1e/acl_get.c | 3 | ||||
-rw-r--r-- | lib/libc/posix1e/acl_set.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/posix1e/acl_get.c b/lib/libc/posix1e/acl_get.c index e8807c431f97..8a77ab1aa88a 100644 --- a/lib/libc/posix1e/acl_get.c +++ b/lib/libc/posix1e/acl_get.c @@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$"); #include "un-namespace.h" #include <errno.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> @@ -102,7 +103,7 @@ acl_get_link_np(const char *path_p, acl_type_t type) acl_t acl_get_fd(int fd) { - if (fpathconf(fd, _PC_ACL_NFS4)) + if (fpathconf(fd, _PC_ACL_NFS4) == 1) return (acl_get_fd_np(fd, ACL_TYPE_NFS4)); return (acl_get_fd_np(fd, ACL_TYPE_ACCESS)); diff --git a/lib/libc/posix1e/acl_set.c b/lib/libc/posix1e/acl_set.c index 7086c4b53d7b..f9ee76d387d3 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)); |