From owner-freebsd-current@FreeBSD.ORG Fri Feb 24 07:34:41 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94E91106564A for ; Fri, 24 Feb 2012 07:34:41 +0000 (UTC) (envelope-from peter.maloney@brockmann-consult.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id 26F088FC08 for ; Fri, 24 Feb 2012 07:34:40 +0000 (UTC) Received: from [10.3.0.26] ([141.4.215.32]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0Ll4mA-1SYW4D3qJq-00b0QL; Fri, 24 Feb 2012 08:21:56 +0100 Message-ID: <4F473A93.1030306@brockmann-consult.de> Date: Fri, 24 Feb 2012 08:21:55 +0100 From: Peter Maloney User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:f/T8dJzBkJUY3uSC4F5hdrSVQtPswoN83b3DA5s0D3+ vN/vODo971qRz+ailFoIPu0EIhxsPx4ATuYz/rMuSKM9wc+mrE DglSt6u7R4wCvdMIXI/2KLOxN74ARhfe2/kCssLs9rfyCtwh9u qc9XMfeZsHpKAAqW8FPkJySDiyf+Hkd/cUgvOlYAbBMoTiko7e sgUwcYVnE9H0xoVQSfqvp2wbcEdi3sia87fyVGDns11KcN5kbf cTvVUTSGtDMRVvL8spiZ3vRh/DWaKtzXYaCv8wP5QbakJT60zj /BF/K4RDTSxtIA2Mg2hq9iR9DDseBhEow3HtJuNPwBHvfy2zXZ bPPJJ3DjkkceZuwXwtSDSIa7wCy12QkbV8AiOvtwn Subject: Re: "rm -rf /" fanclub X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 07:34:41 -0000 On 02/24/2012 01:16 AM, deeptech71@gmail.com wrote: > On Thu, Feb 23, 2012 at 11:41 PM, deeptech71@gmail.com > wrote: >> X11R6 is actually a symlink to /usr/local, and not usr/local or >> .usr/local! Also, /home is a symlink to /usr/home, and not usr/home or >> ./usr/home > I meant to say that X11R6 should be a symlink to local or ./local. I fully agree (if tested)... it makes no sense to use absolute symlinks unless you really want them to be absolute. eg. in my home dir I added dhcpd.leases -> /var/lib/... Did you test this, by removing the link and creating it relative to see if there are any stupid side effects? And I've never really thought symlinks were so dangerous (unless you use software that auto-dereferences, eg. platform independent stuff), but with "mount --bind" in linux (same as nullfs in FreeBSD?), you can do similar things if you don't use "--one-file-system" with your "rm -rf" calls. So in addition to the symlink change, why not improve rm also, by adding the "--one-file-system" option (which actually exists in "grm" from the sysutils/coreutils port). > About /home: I've just noticed that /home points to usr/home in the > newest release. The newest basic installation (base + kernel) doesn't > even come with an X11R6 symlink, yet I did have it after a full > install (-CURRENTization + ports), so that symlink must be coming from > mergemaster or some port. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- -------------------------------------------- Peter Maloney Brockmann Consult Max-Planck-Str. 2 21502 Geesthacht Germany Tel: +49 4152 889 300 Fax: +49 4152 889 333 E-mail: peter.maloney@brockmann-consult.de Internet: http://www.brockmann-consult.de --------------------------------------------