Cygwin 7z breaks symlinks

Steven Penny svnpenn@gmail.com
Sun Mar 15 16:52:07 GMT 2020


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.



More information about the Cygwin mailing list