- if (!mode_has_perm(path_mode, S_IXGRP)) {
- /* The group ACL entry should already have been inherited from the
- default ACL. If the source was not group executable, we want to
- modify the destination so that it is not group executable
- either. In the presence of ACLs, the group permissions come not
- from the mode bits, but from the group:: ACL entry. So, to do
- this, we remove the group::x entry. */
- if (has_default_group_obj_execute(path)) {
- /* remove_default_group_obj_execute(path);*/
+ int sp_result = acl_set_permset(entry, permset);
+ if (sp_result == -1) {
+ perror("reapply_default_acl_ng (acl_set_permset)");
+ result = -1;
+ goto cleanup;
+ }