NetBSD Problem Report #53326
From www@NetBSD.org Tue May 29 00:19:23 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 614F87A154
for <gnats-bugs@gnats.NetBSD.org>; Tue, 29 May 2018 00:19:23 +0000 (UTC)
Message-Id: <20180529001922.44CDB7A237@mollari.NetBSD.org>
Date: Tue, 29 May 2018 00:19:22 +0000 (UTC)
From: mayuresh@acm.org
Reply-To: mayuresh@acm.org
To: gnats-bugs@NetBSD.org
Subject: archivers/unzip says wrong password on NetBSD, same password accepted on Linux
X-Send-Pr-Version: www-1.0
>Number: 53326
>Category: pkg
>Synopsis: archivers/unzip says wrong password on NetBSD, same password accepted on Linux
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: wiz
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 29 00:20:00 +0000 2018
>Closed-Date: Sun Jul 08 10:28:49 +0000 2018
>Last-Modified: Sun Jul 08 10:28:49 +0000 2018
>Originator: Mayuresh
>Release: pkgsrc-current last upd Mon May 28 13:06:35 2018 +0000
>Organization:
>Environment:
NetBSD localhost 8.0_RC1 NetBSD 8.0_RC1 (GENERIC.201804191727Z) amd64
>Description:
On NetBSD 8.0_RC1 amd64, using archivers/unzip utility as:
unzip -P <passwd> <filename>
draws invalid password error.
whereas the same file with same password is unzipped correctly on Linux
with base unzip (CentOS).
Both have the same version string as:
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
ldd on both systems shows:
On NetBSD:
$ ldd /usr/pkg/bin/unzip
/usr/pkg/bin/unzip:
-lz.1 => /usr/lib/libz.so.1
-lc.12 => /usr/lib/libc.so.12
On Linux:
$ ldd /usr/bin/unzip
linux-vdso.so.1 => (0x00007ffdd4d89000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fa78ac16000)
libc.so.6 => /lib64/libc.so.6 (0x00007fa78a853000)
/lib64/ld-linux-x86-64.so.2 (0x000055806a040000)
pkgsrc is not seen providing any options.
May be some configure option missed out?
>How-To-Repeat:
Install archivers/unzip
unzip any password protected file.
>Fix:
Not known, but ldd difference with Linux hints that some configuration options might be missed out, such as integration with bzip.
>Release-Note:
>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/53326: archivers/unzip says wrong password on NetBSD, same
password accepted on Linux
Date: Tue, 29 May 2018 11:36:04 +0200
On Tue, May 29, 2018 at 12:20:00AM +0000, mayuresh@acm.org wrote:
> >Number: 53326
> >Category: pkg
> >Synopsis: archivers/unzip says wrong password on NetBSD, same password accepted on Linux
See also 53068 for a workaround using a different package.
I don't think it's an issue with bzip2, that is just a compression
format that is not relevant for encrypting zip archives.
Thomas
From: Mayuresh <mayuresh@acm.org>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/53326: archivers/unzip says wrong password on NetBSD, same
password accepted on Linux
Date: Tue, 29 May 2018 16:27:42 +0530
On Tue, May 29, 2018 at 09:40:01AM +0000, Thomas Klausner wrote:
> See also 53068 for a workaround using a different package.
The workaround works. Thanks.
Mayuresh.
Responsible-Changed-From-To: pkg-manager->wiz
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Sun, 08 Jul 2018 10:28:49 +0000
Responsible-Changed-Why:
Over to maintainer.
State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sun, 08 Jul 2018 10:28:49 +0000
State-Changed-Why:
Submitter says workaround works.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.