Cygwin 7z breaks symlinks

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Cygwin 7z breaks symlinks

Cygwin list mailing list
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.
--
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