vfs_gpfs: Fix compile error in gpfsacl_sys_acl_set_fd
authorChristof Schmitt <cs@samba.org>
Fri, 2 Jun 2017 23:16:16 +0000 (16:16 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 3 Jun 2017 03:52:32 +0000 (05:52 +0200)
../source3/modules/vfs_gpfs.c: In function ‘gpfsacl_sys_acl_set_fd’:
../source3/modules/vfs_gpfs.c:1280:6: error: passing argument 2 of ‘gpfsacl_sys_acl_set_file’ from incompatible pointer type [-Werror]
      SMB_ACL_TYPE_ACCESS, theacl);
      ^
../source3/modules/vfs_gpfs.c:1235:12: note: expected ‘const struct smb_filename *’ but argument is of type ‘char *’
 static int gpfsacl_sys_acl_set_file(vfs_handle_struct *handle,

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Jun  3 05:52:32 CEST 2017 on sn-devel-144

source3/modules/vfs_gpfs.c

index 4dc9f76a42d488afc5fb7b95ed2c6d97c38a3190..aeb0836b866ac1b26742efdff4a57815361b2c11 100644 (file)
@@ -1276,7 +1276,7 @@ static int gpfsacl_sys_acl_set_fd(vfs_handle_struct *handle,
                return SMB_VFS_NEXT_SYS_ACL_SET_FD(handle, fsp, theacl);
        }
 
-       return gpfsacl_sys_acl_set_file(handle, fsp->fsp_name->base_name,
+       return gpfsacl_sys_acl_set_file(handle, fsp->fsp_name,
                                        SMB_ACL_TYPE_ACCESS, theacl);
 }