-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find: Implement -[no]user
and -[no]group
predicates.
#368
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #368 +/- ##
==========================================
+ Coverage 59.59% 60.08% +0.48%
==========================================
Files 30 32 +2
Lines 3891 4021 +130
Branches 862 889 +27
==========================================
+ Hits 2319 2416 +97
- Misses 1240 1254 +14
- Partials 332 351 +19 ☔ View full report in Codecov by Sentry. |
[no]user
and [no]group
predicates.-[no]user
and -[no]group
predicates.
Reimplemented Used to retrieve files for which user and group attributes do not exist (but uid or gid may exist).
Regarding integration testing: Because running tests for these codes on the target system requires the creation of a new user, which may cause insecurity, the relevant test code is not included. |
The CI fails, could you please have a look? Thanks |
Sorry for the late reply, I have submitted the fix related to the current PR. |
Hi, I have completed the content of #371 ( I would like to merge them into the branch of the current PR. How about it? |
With the GNU testsuite: Nice :) |
implement: #7
This PR implements
-user
and-group
,and also addsand add-nouser
and-nogroup
predicates to filter out files outside a specific user or group.-nouser
and-nogroup
to filter the files of deleted users or deleted groups.nix = { version = "0.28", features = ["user"] }
for parsing users and groups to correctly convert touid
andgid
.uid
andgid
or equivalent metadata are not provided instd::os::windows::fs::MetadataExt
.