summaryrefslogtreecommitdiff
path: root/libacl
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2003-02-10 05:37:09 +0000
committerNathan Scott <nathans@sgi.com>2003-02-10 05:37:09 +0000
commitf8d980d5dd7364d9711f42adf2491c9e6aadfb45 (patch)
tree702fcc0cbd37b07ba7c7c91c8fecda98e9435729 /libacl
parent56b8df09544293ce023cf5e8ba658ead84b5943e (diff)
downloadacl-f8d980d5dd7364d9711f42adf2491c9e6aadfb45.tar.gz
Merge libacl bug fix from Andreas - acl_get_file mishandled default ACL
when initial ACE count guess was incorrect.
Diffstat (limited to 'libacl')
-rw-r--r--libacl/acl_get_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libacl/acl_get_file.c b/libacl/acl_get_file.c
index 6cea121..c5d3253 100644
--- a/libacl/acl_get_file.c
+++ b/libacl/acl_get_file.c
@@ -57,7 +57,7 @@ acl_get_file(const char *path_p, acl_type_t type)
return NULL;
retval = getxattr(path_p, name, ext_acl_p, size_guess);
if (retval == -1 && errno == ERANGE) {
- retval = getxattr(path_p, ACL_EA_ACCESS, NULL, 0);
+ retval = getxattr(path_p, name, NULL, 0);
if (retval > 0) {
ext_acl_p = alloca(retval);
if (!ext_acl_p)