bin/166553: find -delete documentation is misleading

Richard Kettlewell rjk at
Sun Apr 1 09:30:13 UTC 2012

>Number:         166553
>Category:       bin
>Synopsis:       find -delete documentation is misleading
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>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 mailing list