Menu

#909 What does peazip command line option -ext2openpwtest do ?

New
nobody
None
Low
Other
2026-02-16
2026-02-16
MMTsuchi
No

Hi, what does peazip command line option -ext2openpwtest really do ?
The documentation says :

-ext2openpwtest requires password as paramstr(2) (always delimited) and archive’s full name as paramstr(3): try to list the archive and terminate with exit code 0 if archive is not encrypted, 1 if it is encrypted, 2 if it is non readable (corrupted or with encrypted file list), -1 if archive is not found.

(I guess paramstr(2) and (3) are arguments of command line.)

peazip -ext2openpwtest "mypassword" `realpath myfile.pea`

always exits code 0 or shows me a peazip add to archive window with those files to add : "mypassword" and "/home/test/test_peazip/myfile.pea".

Is my command line mal-formatted ? How does -ext2openpwtest work and what does it really mean ?

Best regards

Discussion

  • Giorgio Tani

    Giorgio Tani - 2026-02-16

    It was a legacy switch, no longer supported, I'll update documentation accordingly in the next release.
    It was an internal method used to test correctness of a password for the input archive, now superseded by a more efficient routine, and it was also made available as CLI switch.

     
  • MMTsuchi

    MMTsuchi - 2026-02-16

    Ok.
    What about exit code of (linux) Peazip program ? Always = 0 ?
    Regards.

     
    • Giorgio Tani

      Giorgio Tani - 2026-02-16

      Program's error reporting it is not based in setting an exitcode when closing, rather there are specific interactive, human readable error messages (and logs if applicable) for each operation performed in the GUI.
      I could consider in adding exitcodes to single purpose functions (like the one triggered by the switch), where the program is expected to run a single task and exit.

       
      👍
      1

Log in to post a comment.

MongoDB Logo MongoDB