From: Christof Schmitt Date: Fri, 2 Jun 2017 23:16:16 +0000 (-0700) Subject: vfs_gpfs: Fix compile error in gpfsacl_sys_acl_set_fd X-Git-Tag: ldb-1.1.31~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6201407a346a376e215f4303e55bbdf8febd5df;p=thirdparty%2Fsamba.git vfs_gpfs: Fix compile error in gpfsacl_sys_acl_set_fd ../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 Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Jun 3 05:52:32 CEST 2017 on sn-devel-144 --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 4dc9f76a42d..aeb0836b866 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -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); }