delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/09/03:32:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <002001c09272$c13cfae0$8b0c4ea8@kepri.re.kr>
From: "Jong B. Lee" <jbdoll AT kepri DOT re DOT kr>
To: "cygwin" <cygwin AT cygwin DOT com>
Subject: tar problem - symlinked file
Date: Fri, 9 Feb 2001 17:31:52 +0900
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id DAA24742

tar does not teat well symlinked file
when it is symlinked to a file in its parent directory.

Here's the case.
Current directory is <test> and a file, <foo>, is in the parent directory.
$ ls -s ../foo foo
$ cd ..

$ tar cvf test.tar test
$ rm -rf test
$ tar xvf test.tar
$ cd test
$ls -laF
Wow!
The size of foo is zero !

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019