Date: Sun, 1 Apr 2012 09:24:26 GMT From: Richard Kettlewell <rjk@greenend.org.uk> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/166553: find -delete documentation is misleading Message-ID: <201204010924.q319OQeN036749@red.freebsd.org> Resent-Message-ID: <201204010930.q319UCJt080967@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204010924.q319OQeN036749>
