From owner-freebsd-questions@freebsd.org Thu Dec 21 16:06:46 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0634E9FBD7 for ; Thu, 21 Dec 2017 16:06:46 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.home.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "fileserver.home.qeng-ho.org", Issuer "fileserver.home.qeng-ho.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46A1B6BBF1 for ; Thu, 21 Dec 2017 16:06:45 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.home.qeng-ho.org (8.15.2/8.15.2) with ESMTP id vBLFgMrT078670; Thu, 21 Dec 2017 15:42:22 GMT (envelope-from freebsd@qeng-ho.org) Subject: Re: How to fix : Cannot extract through symlink To: Manish Jain , "freebsd-questions@freebsd.org" References: From: Arthur Chance Message-ID: <9879912b-5e7a-b0a0-4794-636e2ff3ca56@qeng-ho.org> Date: Thu, 21 Dec 2017 15:42:22 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2017 16:06:46 -0000 On 21/12/2017 14:37, Manish Jain wrote: > Hi, > > Whenever I try to install any rpm under my Linuxulator (linux_base-c7), > I get the error: cannot extract through > > can be bin / sbin / lib / lib64, which are symbolic links to > usr/ (under the path /compat/linux/) > > Each time I am faced with this problem, I have to delete and copy > the actual directory in its place. But this is far less than ideal. > > 1) Is there some way I can avoid the above mess ? > 2) If not, there was a time under Unix when hard-linking a directory was > possible. Is there some hack by which I could hard-link directories > under FreeBSD ? Looking at the manual for link(2), hard linking directories is explicitly forbidden by the kernel. Many moons ago under SunOS I tried hard linking directories just to see what happened. Believe me, it's not a place you want to be, especially not if the link went up the file hierarchy. -- An amusing coincidence: log2(58) = 5.858 (to 0.0003% accuracy).