s3: VFS: hpuxacl: Fix the funtion signature for hpuxacl_sys_acl_set_fd()
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 23:56:44 +0000 (16:56 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:31 +0000 (13:14 +0000)
This is really unmaintained code and should be removed unless
someone from HP steps up..

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_hpuxacl.c

index 0b5cab806effa8ed2baabfb45f8ffd1cc71aeda1..2d46d8cbc1c2f15038ac97331a062e3f77f777ed 100644 (file)
@@ -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,
 };