Repository navigation
find: fix symbolic -perm matching for directories - #931
Conversation
The directory mask was parsed using regular file rules, which made -perm u=rwX match 0600 directories instead of 0700 directories. Set the parser's directory flag so X and special bits follow directory rules. Add parser tests for directory masks and integration tests for all three comparison forms. Include regular files and numeric modes as controls. Fixes uutils#930
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #931 +/- ##
==========================================
+ Coverage 92.65% 92.66% +0.01%
==========================================
Files 37 37
Lines 7837 7851 +14
Branches 393 393
==========================================
+ Hits 7261 7275 +14
Misses 435 435
Partials 141 141 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will improve performance by 17.59%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing |
|
Commit 674e8c9 has test result changes: bfs testsuite: |
1 similar comment
|
Commit 674e8c9 has test result changes: bfs testsuite: |
The directory mask was parsed using regular file rules, which made
-perm u=rwXmatch0600directories instead of0700directories.Set the parser's directory flag so
Xand special bits follow directoryrules.
Add parser tests for directory masks and integration tests for all
three comparison forms. Include regular files and numeric modes as
controls.
Fixes #930