Repository navigation
grep: read devices and special files under -R when recursing - #254
yunusarda-sudo wants to merge 1 commit into
Conversation
GNU grep reads FIFOs, sockets and device nodes encountered under -R (--dereference-recursive), and skips them only under -r (--recursive). Fixes uutils#162
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #254 +/- ##
==========================================
- Coverage 97.22% 97.18% -0.04%
==========================================
Files 6 6
Lines 2270 2274 +4
Branches 245 245
==========================================
+ Hits 2207 2210 +3
- Misses 63 64 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
When recursing directory hierarchies, GNU grep reads special files (FIFOs, sockets, device nodes) under
-R(--dereference-recursive), but skips them under-r(--recursive) unless-D readis explicitly specified.In
src/searcher.rs, check whether devices should be read based onconfig.device_mode:DeviceMode::Read: readDeviceMode::Skip: skipDeviceMode::Default: read ifconfig.follow_symlinks(-R), otherwise skipFixes #162