From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bmail.ru ([194.67.1.203] helo=sovam.com) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TLF1s-0000B6-KU for linux-mtd@lists.infradead.org; Mon, 08 Oct 2012 15:14:01 +0000 Date: Mon, 8 Oct 2012 19:13:58 +0400 (MSK) From: kyak To: Ricard Wanderlof Subject: Re: output file cannot be in the UBIFS root directory check is not working quite well In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Linux mtd List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 8 Oct 2012, Ricard Wanderlof wrote: > Definitely. I see your point now. This must be a definite bug in in_path(). > > One problem though is that when in_path() traverses the tree upwards, and > encounters a directory which it can't read it can't complete its job. On the > other hand, it shouldn't have to do that, it really only needs to see that > the output file is not below the top level of the input tree. Or am I missing > a case here? > Yes, it only needs to check if the output file is above the top level of the input tree. But I guess it's not that easy - first things that come into my mind are symbolic links and mount --bind.