mirror of
git://git.sv.gnu.org/findutils.git
synced 2026-01-30 21:28:58 +01:00
Although usually a pattern containing a directory separator does not match anything, a pattern solely consisting of one '/' still does (and has to) for the root directory "/". * find/parser.c (check_name_arg): Omit the warning in the case the given pattern equals "/". find/find.1 (-name): Clarify better that the pattern "/" is valid to match the "/" directory. * init.cfg (find_emits_warnings_): Add utility function. * tests/find/name-slash.sh: Add test. * tests/local.mk (all_tests): Reference it. * MEWS (Bug Fixes): Mention the fix. Fixes https://savannah.gnu.org/bugs/?62227