Date: Wed, 26 Sep 2007 12:15:03 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Oliver Fromme <olli@lurza.secnetix.de> Cc: freebsd-stable@freebsd.org Subject: Re: rm(1) bug, possibly serious Message-ID: <20070926171503.GC3062@dan.emsphone.com> In-Reply-To: <200709261447.l8QElua3058752@lurza.secnetix.de> References: <54db43990709251838q68bdba95iefefb43029761c34@mail.gmail.com> <200709261447.l8QElua3058752@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 26), Oliver Fromme said: > Bob Johnson wrote: > > Oliver Fromme wrote: > > > By the way, an additional confusion is that ".." and "../" > > > are handled differently. Specifying ".." always leads to > > > this message: > > > > > > rm: "." and ".." may not be removed > > > > > > 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. > > > > Maybe. But I expect that the behavior for "rm -rf .." is there so > > that things don't get REALLY astonishing when you do "rm -rf *". > > The expansion of "*" does not include "." or "..". Under /bin/sh, ".*" does match "." and "..", so be careful :) -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070926171503.GC3062>