bin/166553: find -delete documentation is misleading

Richard Kettlewell rjk at greenend.org.uk
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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 01 09:30:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Richard Kettlewell
>Release:        
>Organization:
>Environment:
>Description:
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.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list