From owner-freebsd-current@FreeBSD.ORG Mon Oct 25 12:05:50 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF8CC16A4CE for ; Mon, 25 Oct 2004 12:05:50 +0000 (GMT) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id E215543D68 for ; Mon, 25 Oct 2004 12:05:48 +0000 (GMT) (envelope-from avg@icyb.net.ua) Received: from [212.40.38.87] (oddity.topspin.kiev.ua [212.40.38.87]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA15258; Mon, 25 Oct 2004 15:05:25 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <417CEC04.3060705@icyb.net.ua> Date: Mon, 25 Oct 2004 15:05:24 +0300 From: Andriy Gapon User-Agent: Mozilla Thunderbird 0.8 (X11/20041019) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Doug White References: <4178DBA0.8050605@icyb.net.ua> <20041022131342.W95775@gwdu60.gwdg.de> <4178EE95.6080708@icyb.net.ua> <20041022103516.I48519@carver.gumbysoft.com> In-Reply-To: <20041022103516.I48519@carver.gumbysoft.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 25 Oct 2004 12:15:48 +0000 cc: freebsd-current@freebsd.org cc: Konrad Heuer Subject: Re: linux emulation: "/ " resolves to real root dir; why ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 25 Oct 2004 12:05:51 -0000 on 22.10.2004 20:37 Doug White said the following: ... >>we are taking about different "break outs". Removing the check will >>*not* affect accessing any other filesystem node but "/". Only things like >> cd / >> ls / >>or >> "cd .." from /compat/linux/foo >>will be affected. > > > You missed the point. I am sorry but I think that's what you did. You will be able to do "cd /home" or "ls /home" just fine. Only one filesystem node corresponding to "/" will be affected. > This would mean you would not be able to access > stuff like /home, which would make it awful hard to access user home > directories, unless you create symlink copies in the /compat/linux tree. no, see what I wrote above. > > As long as you create the top-level dir in /compat/linux first, mkdir -p > will Do The Right Thing after that. No, it will not. As I wrote before it needs all path components but last to exist, otherwise it will do "cd /" first and this will be the wrong root. > The port seems to install fine on my systems; it doesn't spam any existing > files or directories, so I'm not sure why you think linux_base-7 has a > problem. I never said that this port has a problem, all I said is that "mkdir -p" with mkdir from this port doesn't properly work *because of the discussed linux emulation "feature"*. -- Andriy Gapon