Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#132 Incorrect unpack on linux directory contain win-created arch

v1.0 (example)
closed-works-for-me
nobody
None
5
2013-06-15
2012-10-27
Starikov Sergey
No

I use app-arch/p7zip-9.13 on amd64 arch GNU/Linux with ru_RU.UTF8 locale.

While unpacking windows-created 7z archive (for example https://code.google.com/p/ooofbtools/downloads/detail?name=OOoFBTools-2.5.7z ) I see, that 7z begins from extracting ordinar files (placeing them into root directory) and only after that - directory, where these files normally should be placed.

$ 7z e OOoFBTools-2.5.7z

7-Zip [64] 9.13 beta Copyright (c) 1999-2010 Igor Pavlov 2010-04-15
p7zip Version 9.13 (locale=ru_RU.UTF8,Utf16=on,HugeFiles=on,4 CPUs)

Processing archive: OOoFBTools-2.5.7z

Extracting OOoFBTools-2.5/ChangeLog_Eng.txt
Extracting OOoFBTools-2.5/ChangeLog_Rus.txt
Extracting OOoFBTools-2.5/OOoFBTools-2.5_Help.pdf
Extracting OOoFBTools-2.5/Копия ExportToFB21_example-1.odt
Extracting OOoFBTools-2.5/Копия ExportToFB21_example-2.odt
Extracting OOoFBTools-2.5/OOoFBTools.oxt
Extracting OOoFBTools-2.5

Everything is Ok

Folders: 1
Files: 6
Size: 4751825
Compressed: 3972465

So, finally I see empty directory and files in root directory instead of files in directory, where they were placed.

Commonly, 7z should first force extracting all directories (increasing embedding level) and only after that extract ordinar files.

Discussion

  • Igor Pavlov
    Igor Pavlov
    2012-10-27

    1) Use "x" command instead of "e" command.
    2) Such order allows to restore timestamps for directory entries.

     
  • my space
    my space
    2013-06-15

    • status: open --> closed-works-for-me
    • Group: --> v1.0 (example)