Menu

#2418 missing symlinks in log for Tar archive

open
nobody
None
5
2023-10-26
2023-10-25
Peter Bulin
No

When extracting Tar archive which contains symlinks, console output (using -bb1 or higher) is missing information about created symlinks. I have looked at the code in TarHandler.cpp and found commented code which looks like it should log this information, but it is commented:

        /*
        // probably we must show extracting info it callback handler instead
        if (item->IsHardLink() ||
            item->IsSymLink())
        {
          RINOK(extractCallback->PrepareOperation(askMode))
          RINOK(extractCallback->SetOperationResult(NExtract::NOperationResult::kOK))
        }
        */

Discussion

  • Igor Pavlov

    Igor Pavlov - 2023-10-25

    Now I don't remember why it was commented.
    Maybe it was supposed that caller (client code) can show information instead, but it was not implemented by some reason.

     
  • Peter Bulin

    Peter Bulin - 2023-10-25

    So if this is uncommented will it fix the problem? Or is there a issue with this code?

     
  • Igor Pavlov

    Igor Pavlov - 2023-10-26

    Yes, it must work, as I suppose.

            if (item->Is_HardLink() ||
                item->Is_SymLink())
            {
              RINOK(extractCallback->PrepareOperation(askMode))
              RINOK(extractCallback->SetOperationResult(NExtract::NOperationResult::kOK))
            }
    
     

Log in to post a comment.