Menu

#2586 Symbolic links in Rar v2 are not restored as links

None
open-accepted
nobody
None
5
2025-08-19
2025-08-16
Sam Tansy
No

When unpacking Rar v2 (made with Rar v2 - v4) symbolic links are not restored as links but as files containing file name.

$ rar3 a -ol ln-s.rar3 dir
$ rar3 x ln-s.rar3 dir

$ ls -l dir 
total 4
lrwxrwxrwx 1 user users  5 Aug 16 21:56 a-link.txt -> a.txt
-rw-r--r-- 1 user users 12 Aug 16 21:56 a.txt

$ cat dir/a-link.txt
Lorem ipsum
$ 7zz x ln-s.rar3 dir

$ ls -l dir 
total 8
-rw-r--r-- 1 user users  5 Aug 16 21:56 a-link.txt
-rw-r--r-- 1 user users 32 Aug 16 21:56 a.txt

$ cat dir/a-link.txt
a.txt
1 Attachments

Discussion

  • Igor Pavlov

    Igor Pavlov - 2025-08-18

    Old formats support is low priority now.

     
  • Sam Tansy

    Sam Tansy - 2025-08-19

    Old formats support is low priority now

    It's not just 'Old format'. Testing gives funny error.

    $ 7zz t ln-s.rar5
    (...)
    ERROR: Data Error : dir/a-link.txt
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Sub items Errors: 1
    
     
  • Igor Pavlov

    Igor Pavlov - 2025-08-19
    • status: open --> open-accepted
    • Group: -->
     
  • Igor Pavlov

    Igor Pavlov - 2025-08-19

    I'll fix these rar4/rar5 issues in next version.
    Thanks for report!

     

Log in to post a comment.

MongoDB Logo MongoDB