public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Subject: Cygwin 7z breaks symlinks
Date: Sun, 15 Mar 2020 11:52:07 -0500	[thread overview]
Message-ID: <CAAXzdLVBXuY1=1rxu-Ga-PrikideueKx=CJ97o-FdophHb5w=A@mail.gmail.com> (raw)

If you try to use p7zip to create an archive with symlink:

    7z a -snl c.tar a.txt b.txt

The symlink is broken:

    $ 7z l -slt c.tar
    [...]
    Path = b.txt
    Folder = -
    Size = 5
    Packed Size = 512
    Modified = 2020-03-15 10:34:04
    Mode = -rwxrwxrwx
    User =
    Group =
    Symbolic Link =
    Hard Link =

but if you use this version:

<https://7-zip.org/a/7z1514-x64.exe>

Then it works as expected:

    $ 7z l -slt c.tar
    [...]
    Path = b.txt
    Folder = -
    Size = 5
    Packed Size = 0
    Modified = 2020-03-15 10:48:07
    Mode = lrwxrwxrwx
    User =
    Group =
    Symbolic Link = a.txt
    Hard Link =

Note that I purposefully used an old version from the offical site, to match
the current Cygwin version.

                 reply	other threads:[~2020-03-15 16:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAAXzdLVBXuY1=1rxu-Ga-PrikideueKx=CJ97o-FdophHb5w=A@mail.gmail.com' \
    --to=svnpenn@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).