8000 "The same volume can not be used as both source and destination" when extracting the zip file using winzip · Issue #436 · zlib-ng/minizip-ng · GitHub
[go: up one dir, main page]

Skip to content

"The same volume can not be used as both source and destination" when extracting the zip file using winzip #436

Closed

Description

@najes

The zip file created by minizip 2.9.0 cannot be extracted on the same volume?
I keep getting warning below if i tried to extract zip file using winzip on windows file explorer (it works on 7zip though) :

image

Did i miss something on the zip options part?

options.compress_methodMZ_COMPRESS_METHOD_STORE
options.compress_levelMZ_COMPRESS_LEVEL_DEFAULT
options.append1
options.overwrite1
options.follow_links0
options.store_links0
options.include_path0
options.zip_cd0
options.aes0
options.encodingMZ_ENCODING_UTF8
options.disk_size512*1024
options.cert_pathNULL
options.cert_pwdNULL
Thanks!

Activity

  1. nmoinvaz commented on Oct 31, 2019

    @nmoinvaz
    Member

    Please attach a zip file that reproduces the problem.

  2. najes commented on Nov 1, 2019

    @najes
    Author

    Here is one of the zip file

  3. nmoinvaz commented on Nov 1, 2019

    @nmoinvaz
    Member

    It looks like you are appending entries to the zip file. Can you please share the command lines that you used to create this archive?

  4. najes commented on Nov 1, 2019

    @najes
    Author
    int32_t err = 0;
    char* szFile[ ] = { "TEST.EXE", "TEST.INI", .... }
    for(int i=0, i<(sizeof(szFile)/sizeof(szFile[0])), i++)
    {
      err = (minizip_add(path, password, &options, 1, &szFile[i]));
      if(err == !=MZ_OK)
      {
        .....
      }
    }
    
  5. nmoinvaz commented on Nov 11, 2019

    @nmoinvaz
    Member

    The minizip_add function is not intended to be used in this manner. You should be using the logic inside minizip_add and calling mz_zip_writer_add_path for each entry you want to add, otherwise you are opening the zip file over and over to add each file.

  6. nmoinvaz commented on Nov 11, 2019

    @nmoinvaz
    Member

    It is likely that Windows Explorer does not support split disks. If compatibility with Windows Explorer zip tool is important to you, then specify 0 for disk_size.
    https://stackoverflow.com/questions/31286707/the-same-volume-can-not-be-used-as-both-the-source-and-destination

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedIssue or bug has been fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0