fritzkink
2023-09-24 bff60b04458bb3ce0e0839628b0bf02d5a3af460
components/network/samba/patches/01_solaris.patch
@@ -16,36 +16,7 @@
    ret = acl(fsp->fsp_name->base_name, SETACL, count, solaris_acl);
    if (ret != 0) {
-      DBG_DEBG("settinge file acl failed!\n");
+      DBG_DEBUG("settinge file acl failed!\n");
+      DBG_DEBUG("setting file acl failed!\n");
    }
 
  done:
--- samba-4.18.0/source3/modules/vfs_solarisacl.c   2023-03-24 19:41:11.227232531 +0100
+++ samba-4.18.0/source3/modules/vfs_solarisacl.c.orig   2023-03-24 19:57:53.020532583 +0100
@@ -115,7 +115,7 @@
    DEBUG(10, ("entering solarisacl_sys_acl_get_fd.\n"));
-   if (!solaris_acl_get_fd(fsp_get_io_fd(fsp), &solaris_acl, &count)) {
+   if (!solaris_acl_get_fd(fsp_get_pathref_fd(fsp), &solaris_acl, &count)) {
       goto done;
    }
@@ -174,7 +174,7 @@
             strerror(errno)));
       goto done;
    }
-   if (!solaris_acl_get_fd(fsp_get_io_fd(fsp), &other_acl, &other_count)) {
+   if (!solaris_acl_get_fd(fsp_get_pathref_fd(fsp), &other_acl, &other_count)) {
       DEBUG(10, ("error getting (default) acl from fd\n"));
       goto done;
    }
@@ -195,7 +195,7 @@
       goto done;
    }
-   ret = facl(fsp_get_io_fd(fsp), SETACL, count, solaris_acl);
+   ret = facl(fsp_get_pathref_fd(fsp), SETACL, count, solaris_acl);
    if (ret != 0) {
       DEBUG(10, ("call of facl failed (%s).\n", strerror(errno)));
    }