From owner-freebsd-questions@freebsd.org Thu Dec 21 20:33:26 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 9A816E88CD9 for ; Thu, 21 Dec 2017 20:33:26 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay119.isp.belgacom.be (mailrelay119.isp.belgacom.be [195.238.20.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 24404772FD for ; Thu, 21 Dec 2017 20:33:25 +0000 (UTC) (envelope-from tijl@coosemans.org) X-Belgacom-Dynamic: yes IronPort-PHdr: =?us-ascii?q?9a23=3Auznppx+tDS+4Af9uRHKM819IXTAuvvDOBiVQ1KB4?= =?us-ascii?q?1escTK2v8tzYMVDF4r011RmVBdyds6oMotGVmpioYXYH75eFvSJKW713fDhBt/?= =?us-ascii?q?8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1?= =?us-ascii?q?Ifn+FpLPg8it2O2+54Dfbx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+?= =?us-ascii?q?RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTF?= =?us-ascii?q?UACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRhHohi?= =?us-ascii?q?kZKjA382PYisJ/g61HrxysvAB/zozIbI2JKPZyYr3RcNUHTmRBRMZRUClBD5ui?= =?us-ascii?q?YYsODeoBOftTopf6p1sJthuxGwysC/npyj9Tm3T72rE60+UjEQHCxwEvA9UOsH?= =?us-ascii?q?PPrNrrMacdS+a1zLLSwTXEdfNW1i7w5Y7VeR4iufGBRbF9fdfLxUUxGA7Jkk+c?= =?us-ascii?q?pIPnMj+PyOgBr3aX4ux9Xuy1kWEnsRt+oj23y8cpjYnGm5wax0jf9SV83IY1Pd?= =?us-ascii?q?q4SFNnYdK8EJtfqSWaN4xuT8MhWW5ovCc6yrgYtp6heygG0ognxx/da/yDaYSH?= =?us-ascii?q?/hXjVOGKIThmgXJqYrS/hw2o/Uin0O38WdG40FdMriVbjtnBrnMA2wHJ5sSZRf?= =?us-ascii?q?Zx4l2t1DmN2gzJ9O1IPV44mbLeK5E7w74wkpQTsV7EHi/zgEj2kK6Wdkcg+uWz?= =?us-ascii?q?9+vnZbLmpoSCOI9xkA7+NL8ulta4AeQiPQgCR3Kb9vik1L3/4U35R61HjvMskq?= =?us-ascii?q?bHrp/VPt8bqbOgDw9Mz4Ys9Q2/Dyun0NQfm3kHN0lIeBydj4f3JV7BO+v4Auql?= =?us-ascii?q?j1SrijdryKOOArq0J5zLL2PD2JXofLA1v0Rb1RA1wJZe659SFrAdMdrzXVP0vd?= =?us-ascii?q?3cSBQ+Nlrn7fzgDYBB14EaEUmIBbSUNarUqhfc+uMtJ8GHY4gOtTP0LeNj4OTh?= =?us-ascii?q?2yxq0WQBdLWkiMNEIEuzGe5rdh2U?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2DWAgBrGTxa/8ov8FFSCRkBAQEBAQEBA?= =?us-ascii?q?QEBAQEHAQEBAQGDPoFaJ48ejhsBAYIAMwGCNIYekDiFRQKESUQUAQEBAQEBAQE?= =?us-ascii?q?BAWoogjgigkoBBTocIxALDgoJJQ8qHgYTihMDGacHim8BAQEBAQEEAQEBASSDf?= =?us-ascii?q?4h/gmtFgUSGJgWjCz2QMoRwgQCBJIYVhBCHPo1fils2IoFPTDAIgmWEWEA3h0U?= =?us-ascii?q?rgh8BAQE?= X-IPAS-Result: =?us-ascii?q?A2DWAgBrGTxa/8ov8FFSCRkBAQEBAQEBAQEBAQEHAQEBAQG?= =?us-ascii?q?DPoFaJ48ejhsBAYIAMwGCNIYekDiFRQKESUQUAQEBAQEBAQEBAWoogjgigkoBB?= =?us-ascii?q?TocIxALDgoJJQ8qHgYTihMDGacHim8BAQEBAQEEAQEBASSDf4h/gmtFgUSGJgW?= =?us-ascii?q?jCz2QMoRwgQCBJIYVhBCHPo1fils2IoFPTDAIgmWEWEA3h0Urgh8BAQE?= Received: from 202.47-240-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.240.47.202]) by relay.skynet.be with ESMTP; 21 Dec 2017 21:33:22 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id vBLKXMmd045499; Thu, 21 Dec 2017 21:33:22 +0100 (CET) (envelope-from tijl@coosemans.org) Date: Thu, 21 Dec 2017 21:33:22 +0100 From: Tijl Coosemans To: Manish Jain Cc: "freebsd-questions@freebsd.org" Subject: Re: How to fix : Cannot extract through symlink Message-ID: <20171221213322.0f17ad3d@kalimero.tijl.coosemans.org> In-Reply-To: <20171221195958.010ce64f@kalimero.tijl.coosemans.org> References: <20171221195958.010ce64f@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 20:33:26 -0000 On Thu, 21 Dec 2017 19:59:58 +0100 Tijl Coosemans wrote: > On Thu, 21 Dec 2017 14:37:43 +0000 Manish Jain wrote: >> 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 ? > > Try extracting with tar -P, but please read the tar manual because -P > does other things like preserving absolute paths. Instead of using -P perhaps it's better to extract into a temporary directory and move bin, sbin, lib, and lib64 to usr there. Then copy everything to /compat/linux. That's essentially what we do in the ports tree.