Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2006 02:26:28 +0100
From:      Borja Marcos <BORJAMAR@SARENET.ES>
To:        "Steven Hartland" <killing@multiplay.co.uk>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [patch] rm can have undesired side-effects
Message-ID:  <8649A16F-CA40-4050-9F66-03B5B20D8B90@SARENET.ES>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
> That maybe the case but does rm -f <file> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8649A16F-CA40-4050-9F66-03B5B20D8B90>