From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 30 01:26:25 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9459916A403 for ; Mon, 30 Oct 2006 01:26:25 +0000 (UTC) (envelope-from BORJAMAR@SARENET.ES) Received: from smtp2.sarenet.es (smtp2.sarenet.es [194.30.0.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41D4043D4C for ; Mon, 30 Oct 2006 01:26:24 +0000 (GMT) (envelope-from BORJAMAR@SARENET.ES) Received: from [127.0.0.1] (matahari.sarenet.es [192.148.167.18]) by smtp2.sarenet.es (Postfix) with ESMTP id 2734417A0C; Mon, 30 Oct 2006 02:26:23 +0100 (CET) In-Reply-To: <00f201c6fbb6$0c6bd150$b3db87d4@multiplay.co.uk> References: <20061029222847.GA68272@marvin.astase.com> <20061030003628.42bc5f8d@loki.starkstrom.lan> <00f201c6fbb6$0c6bd150$b3db87d4@multiplay.co.uk> Mime-Version: 1.0 (Apple Message framework v752.2) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8649A16F-CA40-4050-9F66-03B5B20D8B90@SARENET.ES> Content-Transfer-Encoding: 7bit From: Borja Marcos Date: Mon, 30 Oct 2006 02:26:28 +0100 To: "Steven Hartland" X-Mailer: Apple Mail (2.752.2) Cc: freebsd-hackers@freebsd.org Subject: Re: [patch] rm can have undesired side-effects X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2006 01:26:25 -0000 > That maybe the case but does rm -f remove all copies? > Nope so its behaviour is safe even with multiple hardlinks. No. rm unlinks a file from a directory. If the file had no more links, it is deleted as well. There's no surprise at all on the behavior of rm with hard links. Borja.