Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2008 13:53:28 GMT
From:      gavin@FreeBSD.org
To:        freebsd.20.skel@spamgourmet.org, gavin@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/116477: rm(1): rm behaves unexpectedly when using -r and relative paths
Message-ID:  <200806271353.m5RDrSHq036920@freefall.freebsd.org>

index | next in thread | raw e-mail

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@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@sol8:/var/tmp/tmp 8% cd ..
gavin@sol8:/var/tmp 9% rm -r tmp/test2/
gavin@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@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@sol10:/var/tmp/tmp 8% cd ..
gavin@sol10:/var/tmp 9% rm -r tmp/test2/
gavin@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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806271353.m5RDrSHq036920>