From 9bdb22e01cd0374e06182c65bf541c3e2cfd1dde Mon Sep 17 00:00:00 2001 From: David Bartley Date: Mon, 4 May 2009 02:24:16 +0200 Subject: [PATCH] Bug fix in acl module. --- ChangeLog | 5 +++++ lib/set-mode-acl.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9c811f161..eba593c04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 --git a/lib/set-mode-acl.c b/lib/set-mode-acl.c index dbcbea28e..a24b9f348 100644 --- a/lib/set-mode-acl.c +++ b/lib/set-mode-acl.c @@ -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 @@ qset_acl (char const *name, int desc, mode_t mode) } 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) -- 2.11.0