Skip to content

p7zip commands silently truncated terminal-entered passwords to 8 characters #312

@whorfin

Description

@whorfin

Filing here from TritonDataCenter/smartos-live#999 upon request

Using

https://pkgsrc.joyent.com/packages/SmartOS/trunk/x86_64/All

on

$ uname -a
SunOS serverbox 5.11 omnios-r151038-c078b41acd i86pc i386 i86pc illumos

and having installed p7zip

I find that long entered passwords are silently truncated to 8 characters...

Basically, because Solaris crippled getpass(), getpassphrase() should be called instead on Illumos.

Same behavior is observed with the omnios-native

 pkg:/compress/p7zip@16.2-151038.0

Reported to omnios-build:
omniosorg/omnios-build#2457

Reported to "upstream" p7zip:
https://sourceforge.net/p/p7zip/bugs/230/

The p7zip report includes a very simple fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions