| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-50.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE |
| X-Spam-Check-By: | sourceware.org |
| Subject: | Re: tar: symlinks unpacked to empty files (tar security problem?) |
| From: | "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net> |
| To: | cygwin <cygwin AT cygwin DOT com> |
| In-Reply-To: | <20100704171709.GA12616@ednor.casa.cgf.cx> |
| References: | <1278237042 DOT 6012 DOT 15 DOT camel AT YAAKOV04> <20100704171709 DOT GA12616 AT ednor DOT casa DOT cgf DOT cx> |
| Date: | Sun, 04 Jul 2010 14:46:32 -0500 |
| Message-ID: | <1278272792.4436.2.camel@YAAKOV04> |
| Mime-Version: | 1.0 |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Sun, 2010-07-04 at 13:17 -0400, Christopher Faylor wrote: > That's because of the way that tar handles symlinks. If you have a > reference to an absolute path, tar makes a zero-length regular file > placeholder. Then when it is done extracting, tar is supposed to remove > this file and create the real symlink. However, the test to make sure > that it is ok to do this was broken by a recent DLL change. The inode > returned the first time that the file was created was != the inode when > the file is checked later. So tar thought that the zero-length file was > modified and silently decided not to create the symlink. > > I've fixed the cygwin problem - it should be in the next snapshot. It appears to be working with 20100704 snapshot. Thanks for the quick response. Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |