bin/166553: find -delete documentation is misleading
rjk at greenend.org.uk
Sun Apr 1 09:30:13 UTC 2012
>Synopsis: find -delete documentation is misleading
>Arrival-Date: Sun Apr 01 09:30:12 UTC 2012
>Originator: Richard Kettlewell
The documentation for 'find -delete' includes the following remark:
It will not attempt to delete a filename with a / character in its pathname relative to . for security reasons.
This reflects a defensive test early in f_delete. However, the test will not succeed, since find does not use FTS_NOCHDIR, so entry->fts_accpath should never contain "/".
I suggest that this remark be deleted from the man page.
More information about the freebsd-bugs