bin/116477: rm(1): rm behaves unexpectedly when using -r and relative paths

Bruce Evans brde at optusnet.com.au
Sat Jun 28 01:38:23 UTC 2008


On Fri, 27 Jun 2008 gavin at freebsd.org wrote:

> So, it looks like Solaris now behaves in the same way FreeBSD does in this
> case, which (along with bde@'s analysis) suggests to me that the current
> behaviour is correct.
>
> Submitter: do you still believe this to be incorrect, or can I close the PR?

Didn't I analyze that something needs to be done (since POSIX requires
slightly different behaviour)?

POSIX is tightening up the wording for symlinks.  There was some
discussion closely related points on the POSIX mailing list not long
after the PR was submitted.  IIRC, POSIX generally agrees with the
FreeBSD interpretation that a trailing slash causes symlinks to be
followed, and might need to change the wording in places that say
otherwise.  I forget the details and haven't checked for changes in
documents.

Bruce


More information about the freebsd-bugs mailing list