[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Wed Dec 25 11:19:07 MST 2013


The branch, master has been updated
       via  b4ea93c Try to fix bug 7865 for some acl() EINVAL results.
      from  6df5d81 Fix a few issues with make_path().

;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit b4ea93c676024226afa924b4012f06772c613dd4
Author: Wayne Davison <wayned at samba.org>
Date:   Wed Dec 25 10:18:41 2013 -0800

    Try to fix bug 7865 for some acl() EINVAL results.

-----------------------------------------------------------------------

Summary of changes:
 lib/sysacls.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/sysacls.c b/lib/sysacls.c
index 52314bc..fa8caed 100644
--- a/lib/sysacls.c
+++ b/lib/sysacls.c
@@ -873,6 +873,10 @@ int sys_acl_get_tag_type(SMB_ACL_ENTRY_T entry_d, SMB_ACL_TAG_T *type_p)
 
 #define	INITIAL_ACL_SIZE	16
 
+#ifndef NACLENTRIES
+#define NACLENTRIES 0
+#endif
+
 SMB_ACL_T sys_acl_get_file(const char *path_p, SMB_ACL_TYPE_T type)
 {
 	SMB_ACL_T	acl_d;
@@ -909,7 +913,7 @@ SMB_ACL_T sys_acl_get_file(const char *path_p, SMB_ACL_TYPE_T type)
 
 		sys_acl_free_acl(acl_d);
 
-		if ((count = acl(path_p, ACL_CNT, 0, NULL)) < 0) {
+		if ((count = acl(path_p, ACL_CNT, NACLENTRIES, NULL)) < 0) {
 			return NULL;
 		}
 


-- 
The rsync repository.


More information about the rsync-cvs mailing list