bin/116477: rm(1): rm behaves unexpectedly when using -r and
relative paths
gavin at FreeBSD.org
gavin at FreeBSD.org
Fri Jun 27 13:53:28 UTC 2008
Synopsis: rm(1): rm behaves unexpectedly when using -r and relative paths
State-Changed-From-To: open->feedback
State-Changed-By: gavin
State-Changed-When: Fri Jun 27 13:51:44 UTC 2008
State-Changed-Why:
On Solaris 8:
---------------
gavin at sol8:/var/tmp/tmp 7% ls -l
total 4
drwx--x--x 2 gavin gavin 512 Jun 27 14:42 test
lrwxrwxrwx 1 gavin gavin 4 Jun 27 14:43 test2 -> test
gavin at sol8:/var/tmp/tmp 8% cd ..
gavin at sol8:/var/tmp 9% rm -r tmp/test2/
gavin at sol8:/var/tmp 10% ls -l tmp
total 2
drwx--x--x 2 gavin gavin 512 Jun 27 14:42 test
---------------
On Solaris 10:
---------------
gavin at sol10:/var/tmp/tmp 7% ls -l
total 4
drwx--x--x 2 gavin gavin 512 Jun 27 14:44 test
lrwxrwxrwx 1 gavin gavin 4 Jun 27 14:44 test2 -> test
gavin at sol10:/var/tmp/tmp 8% cd ..
gavin at sol10:/var/tmp 9% rm -r tmp/test2/
gavin at sol10:/var/tmp 10% ls -l tmp
total 2
lrwxrwxrwx 1 gavin gavin 4 Jun 27 14:44 test2 -> test
---------------
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?
http://www.freebsd.org/cgi/query-pr.cgi?pr=116477
More information about the freebsd-bugs
mailing list