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: tar: symlinks unpacked to empty files From: "Yaakov (Cygwin/X)" To: cygwin Content-Type: text/plain; charset="UTF-8" Date: Sun, 04 Jul 2010 04:50:41 -0500 Message-ID: <1278237042.6012.15.camel@YAAKOV04> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com With tar-1.23-1 and recent snapshot: echo foo > foo ln -s $PWD/foo bar tar cf test.tar bar foo rm -f bar foo tar xf test.tar ls -l bar foo You will see that 'bar' is a 0-byte file with 0000 permissions instead of a symlink. The symlink reference need not be absolute; it also happens with relative links in different directories, but does not happen if I just "ln -s foo bar". 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