From owner-freebsd-stable@FreeBSD.ORG Tue Sep 25 20:43:25 2007 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 785F716A46C for ; Tue, 25 Sep 2007 20:43:25 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 109CE13C4A5 for ; Tue, 25 Sep 2007 20:43:24 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 95624EB9DD7; Wed, 26 Sep 2007 04:43:48 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id Yu726kvKrVSU; Wed, 26 Sep 2007 04:43:37 +0800 (CST) Received: from LI-Xins-MacBook.local (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 37A66EB2784; Wed, 26 Sep 2007 04:43:37 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; b=AAowcOArcaJCCyV/UK7y4fkHS5UQXxELDVPI4fVNynvnyH3ox+OAfWnbzRufyDwLN AC7c3Z2K8v2Acz0MxJShQ== Message-ID: <46F972DA.4020704@delphij.net> Date: Tue, 25 Sep 2007 13:43:06 -0700 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG, fbsd-stable-0@ml.turing-complete.org References: <200709252038.l8PKckmm019303@lurza.secnetix.de> In-Reply-To: <200709252038.l8PKckmm019303@lurza.secnetix.de> X-Enigmail-Version: 0.95.3 OpenPGP: url=http://www.delphij.net/delphij.asc Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigB6534F0901B5DFFA96608DCF" Cc: Subject: Re: rm(1) bug, possibly serious X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2007 20:43:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB6534F0901B5DFFA96608DCF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oliver Fromme wrote: > Nicolas Rachinsky wrote: > > Oliver Fromme wrote: > > > By the way, an additional confusion is that ".." and "../" > > > are handled differently. Specifying ".." always leads to > > > this message: > > >=20 > > > rm: "." and ".." may not be removed > > >=20 > > > and nothing is actually removed. It is confusing that > > > adding a slash leads to a different error message _and_ > > > removal of the contents of the parent directory. Clearly > > > a POLA violation. > >=20 > > Adding a slash often leads to different behaviour. >=20 > Yes, I'm aware of that. I often make use of the feature > that "find /sys/" expands the symlink, while "find /sys" > does not. The same holds true for ls(1). >=20 > However, I would still argue that there is no sane reason > for "rm -rf ../" behaving differently from "rm -rf ..", > especially because it behaves differently in a destructive > way. That's why I call it a POLA violation. Also a POSIX violation IMHO :-) Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enigB6534F0901B5DFFA96608DCF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+XLaOfuToMruuMARCqbxAJ9k8YmIEViF7vbnUZaQNj/mvBuXMwCfSVvm JbmPJ4/TRmF1fXolmvPw4F0= =Rjuu -----END PGP SIGNATURE----- --------------enigB6534F0901B5DFFA96608DCF--