Date: Tue, 25 Sep 2007 13:43:06 -0700 From: LI Xin <delphij@delphij.net> To: freebsd-stable@FreeBSD.ORG, fbsd-stable-0@ml.turing-complete.org Subject: Re: rm(1) bug, possibly serious Message-ID: <46F972DA.4020704@delphij.net> In-Reply-To: <200709252038.l8PKckmm019303@lurza.secnetix.de> References: <200709252038.l8PKckmm019303@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <delphij@delphij.net> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46F972DA.4020704>