public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: vinay Hegde <vinay.dhegde@gmail.com>
To: cygwin@cygwin.com
Subject: Problem with tar version 1.29 (in Cygwin 3.6 64 bit) in extracting sym-link files
Date: Fri, 2 Oct 2020 20:56:21 +0530	[thread overview]
Message-ID: <CAB848Xth+Y8gzGdLYqtGVCYt=egWzbw_EUCqT921oGEtSH+=Mg@mail.gmail.com> (raw)

Hi Cygwin Team,
In Cygwin 3.6, I am facing an issue while using tar.exe for extracting
.tar.z file.

Issue summary:
When I use 'tar.exe' to extract the .tar.z file, it extracts all files
including symlinks. But symlink file size will be 0KB & it throws
error 'The file cannot be accessed by the system', if I try to open in
any Windows editor like notepad or notepad++

Below are the details:
-   OS: Windows 2019
-   Cygwin version installed: 3.6 (tar version: 1.29)
-   Command used to extract the tar file is: tar -zxvf jre64.tar.Z
-   'ls -l' on the extracted directory shows:
lrwxrwxrwx  1 etbuild Domain Users      8 Jul 10  2017 ControlPanel -> jcontrol
-rwxr-xr-x+ 1 etbuild Domain Users   7734 Mar 15  2017 java
-rwxr-xr-x+ 1 etbuild Domain Users 128791 Mar 15  2017 javaws
-rwxr-xr-x+ 1 etbuild Domain Users   6264 Mar 15  2017 jcontrol

-     As you can see 'ControlPanel' is a symlink file with 0KB
(8Bytes) size. This file, I cannot open in any Windows editor. It
throws error like ''The file cannot be accessed by the system'

-    However, I can open this file in vi editor or I can 'cat' this.

-    Earlier, I was using Cygwin version 1.7 (tar version: 1.27) & in
that, this issue was not there. Symlink file size was 1KB & I could
open it with any Windows editor.

Please suggest what needs to be done to fix this issue.

Regards
Vinay Hegde

             reply	other threads:[~2020-10-02 15:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-02 15:26 vinay Hegde [this message]
2020-10-02 15:43 ` Eliot Moss
2020-10-02 16:47   ` vinay Hegde
2020-10-02 18:14     ` Eliot Moss
2020-10-04 10:28     ` Andrey Repin
2020-10-05 15:23       ` Hamish McIntyre-Bhatty
2020-10-05 17:29         ` Brian Inglis
2020-10-07 20:33           ` Hamish McIntyre-Bhatty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAB848Xth+Y8gzGdLYqtGVCYt=egWzbw_EUCqT921oGEtSH+=Mg@mail.gmail.com' \
    --to=vinay.dhegde@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).