s3:modules: fix the build of vfs_aixacl2.c
authorStefan Metzmacher <metze@samba.org>
Wed, 21 Mar 2018 06:48:16 +0000 (07:48 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 20 Apr 2018 14:53:16 +0000 (16:53 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13345

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Apr  3 20:18:58 CEST 2018 on sn-devel-144

(cherry picked from commit 702665cc52d5dc05ae636519e1ffe9c296f5ef77)

Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-8-test): Fri Apr 20 16:53:16 CEST 2018 on sn-devel-144

source3/modules/vfs_aixacl2.c

index d0cd2c1cbc25336e0054975b7f41d28ace50ff82..e094be1cdb95bbf4feed3b4b4c4394546dee34f1 100644 (file)
@@ -476,7 +476,8 @@ int aixjfs2_sys_acl_set_file(vfs_handle_struct *handle,
        acl_type_t      acl_type_info;
        int     rc;
 
-       DEBUG(10, ("aixjfs2_sys_acl_set_file invoked for %s", name));
+       DEBUG(10, ("aixjfs2_sys_acl_set_file invoked for %s",
+                  smb_fname->base_name));
 
        rc = aixjfs2_query_acl_support((char *)smb_fname->base_name,
                        ACL_AIXC, &acl_type_info);
@@ -490,7 +491,7 @@ int aixjfs2_sys_acl_set_file(vfs_handle_struct *handle,
                return -1;
 
        rc = aclx_put(
-               (char *)name,
+               (char *)smb_fname->base_name,
                SET_ACL, /* set only the ACL, not mode bits */
                acl_type_info,
                acl_aixc,