From: Jeremy Allison Date: Tue, 8 Jun 2021 23:56:44 +0000 (-0700) Subject: s3: VFS: hpuxacl: Fix the funtion signature for hpuxacl_sys_acl_set_fd() X-Git-Tag: tevent-0.11.0~462 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4266b6a7fbd790f662be9f8590fa1cba98d102b1;p=thirdparty%2Fsamba.git s3: VFS: hpuxacl: Fix the funtion signature for hpuxacl_sys_acl_set_fd() This is really unmaintained code and should be removed unless someone from HP steps up.. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_hpuxacl.c b/source3/modules/vfs_hpuxacl.c index 0b5cab806ef..2d46d8cbc1c 100644 --- a/source3/modules/vfs_hpuxacl.c +++ b/source3/modules/vfs_hpuxacl.c @@ -325,6 +325,7 @@ int hpuxacl_sys_acl_set_file(vfs_handle_struct *handle, */ int hpuxacl_sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, + SMB_ACL_TYPE_T type, SMB_ACL_T theacl) { /* @@ -339,7 +340,7 @@ int hpuxacl_sys_acl_set_fd(vfs_handle_struct *handle, return hpuxacl_sys_acl_set_file(handle, fsp->fsp_name->base_name, - SMB_ACL_TYPE_ACCESS, theacl); + type, theacl); } /* @@ -1159,7 +1160,7 @@ static bool hpux_acl_check(HPUX_ACL_T hpux_acl, int count) static struct vfs_fn_pointers hpuxacl_fns = { .sys_acl_get_fd_fn = hpuxacl_sys_acl_get_fd, .sys_acl_blob_get_fd_fn = posix_sys_acl_blob_get_fd, - .sys_acl_set_fd_fn = hpuxacl_sys_acl_set_fd, + sys_acl_set_fd_fn = hpuxacl_sys_acl_set_fd, .sys_acl_delete_def_fd_fn = hpuxacl_sys_acl_delete_def_fd, };