From: Björn Jacke Date: Fri, 14 Sep 2012 08:01:33 +0000 (+0200) Subject: s3: fix the hpux acl module X-Git-Tag: ldb-1.1.13~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1aa281ecb0f45c97d78161fd1308be8655295f1f;p=thirdparty%2Fsamba.git s3: fix the hpux acl module This was not adopted to the recent VFS acl structure changes. Autobuild-User(master): Björn Jacke Autobuild-Date(master): Fri Sep 14 12:23:23 CEST 2012 on sn-devel-104 --- diff --git a/source3/modules/vfs_hpuxacl.c b/source3/modules/vfs_hpuxacl.c index f8661b1134c..884cc5c6f6a 100644 --- a/source3/modules/vfs_hpuxacl.c +++ b/source3/modules/vfs_hpuxacl.c @@ -436,13 +436,13 @@ static bool smb_acl_to_hpux_acl(SMB_ACL_T smb_acl, switch(hpux_entry.a_type) { case USER: DEBUG(10, ("got tag type USER with uid %d\n", - smb_entry->uid)); - hpux_entry.a_id = (uid_t)smb_entry->uid; + smb_entry->info.user.uid)); + hpux_entry.a_id = (uid_t)smb_entry->info.user.uid; break; case GROUP: DEBUG(10, ("got tag type GROUP with gid %d\n", - smb_entry->gid)); - hpux_entry.a_id = (uid_t)smb_entry->gid; + smb_entry->info.group.gid)); + hpux_entry.a_id = (uid_t)smb_entry->info.group.gid; break; default: break; @@ -495,7 +495,7 @@ static SMB_ACL_T hpux_acl_to_smb_acl(HPUX_ACL_T hpux_acl, int count, SMB_ACL_T result; int i; - if ((result = sys_acl_init(0)) == NULL) { + if ((result = sys_acl_init()) == NULL) { DEBUG(10, ("error allocating memory for SMB_ACL\n")); goto fail; }