# HG changeset patch # User David Bartley # Date 1241396656 -7200 # Node ID 8675165e3199eab163cb91b47c32a518e7abfc43 # Parent 37c54155bf3fb7fefd9648979461ded2fd7f6ab1 Bug fix in acl module. diff -r 37c54155bf3f -r 8675165e3199 ChangeLog --- a/ChangeLog Mon May 04 02:03:30 2009 +0200 +++ b/ChangeLog Mon May 04 02:24:16 2009 +0200 @@ -1,3 +1,8 @@ +2009-05-04 David Bartley + + Bug fix in acl module. + * lib/set-mode-acl.c: Use correct struct with ACL_SETACL. + 2009-05-03 Bruno Haible Create gperf-generated file in the source dir, not in the build dir. diff -r 37c54155bf3f -r 8675165e3199 lib/set-mode-acl.c --- a/lib/set-mode-acl.c Mon May 04 02:03:30 2009 +0200 +++ b/lib/set-mode-acl.c Mon May 04 02:24:16 2009 +0200 @@ -1,6 +1,6 @@ /* set-mode-acl.c - set access control list equivalent to a mode - Copyright (C) 2002-2003, 2005-2008 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -354,10 +354,10 @@ } if (desc != -1) ret = facl (desc, ACE_SETACL, - sizeof (entries) / sizeof (aclent_t), entries); + sizeof (entries) / sizeof (ace_t), entries); else ret = acl (name, ACE_SETACL, - sizeof (entries) / sizeof (aclent_t), entries); + sizeof (entries) / sizeof (ace_t), entries); if (ret < 0 && errno != EINVAL && errno != ENOTSUP) { if (errno == ENOSYS)