From owner-freebsd-questions Fri Jan 31 12:21:42 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00CA837B405 for ; Fri, 31 Jan 2003 12:21:34 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-166.pit.adelphia.net [24.53.161.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 187C743FBF for ; Fri, 31 Jan 2003 12:21:28 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.3/8.12.3) with ESMTP id h0VKLPT5001876; Fri, 31 Jan 2003 15:21:26 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E3ADA1B.5020304@potentialtech.com> Date: Fri, 31 Jan 2003 15:18:35 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Giorgos Keramidas Cc: bastill@adam.com.au, Lowell Gilbert , freebsd-questions@FreeBSD.ORG Subject: Re: Ooops. References: <005601c2c8c5$47735b10$6501a8c0@grant> <1043981504.3e39e4c0b6e66@webmail.adam.com.au> <44znpinhl7.fsf@be-well.ilk.org> <1043983614.3e39ecfecd509@webmail.adam.com.au> <20030131201357.GA18381@gothmog.gr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Giorgos Keramidas wrote: >>Unfortunately, rm -rf home removed home from the source /usr >>directory as well! :-( I presume that this was due to /home being >>a symlink to /usr/home, and somehow that link remained, so that -r >>referred to everything below the symlink as well as to the directory >>I was trying to remove. >> >>Whatever the explanation, IMHO rm -r should NOT do this by default. > > > As far as I know, it doesn't. You should show use a minimal set of > commands that reproduces the bug. This will help anyone with a bit of > C knowledge to track it down in the rm(1) source and fix it. I've been quietly following this thread since it started and ... I can't reproduce this behaviour. I've created and deleted I don't know how many test directories and symlinks and I can't get it to do what you're claiming it did. He's absolutely correct. Without the _exact_ command that you used, it's going to be very hard to figure out what went wrong. Are you using a shell that keeps a command history (i.e. bash)? If so, can you get us the exact command that you issued? -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message