Skip to content

Instead of changing the ACLs of files individually, use the --recursive option of setfacl#1

Merged
kiarn merged 1 commit intolinuxmuster:lmn73from
raphael247:lmn73
Mar 25, 2026
Merged

Instead of changing the ACLs of files individually, use the --recursive option of setfacl#1
kiarn merged 1 commit intolinuxmuster:lmn73from
raphael247:lmn73

Conversation

@raphael247
Copy link

setfacl is smart enough that when using the --recursive option, it does not apply the default ACL entries to the files in subdirectories. Therefore, the --recursive option can be used instead of making the distinction between files and directories in the program code.

…ption of setfacl is now used to efficiently apply changes
Copy link
Collaborator

@hermanntoast hermanntoast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Using setfacl -R is the right approach here — it correctly ignores default: ACL entries on files, so the manual file/directory distinction is unnecessary. This is cleaner, more performant, and easier to maintain. Thanks for contributing!

@kiarn kiarn merged commit a13eb53 into linuxmuster:lmn73 Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants