Package: gnupg
Version: 1.4.18-7ubuntu1
Severity: normal
File: /usr/bin/gpg-zip
Tags: patch

Hi,

It appears that the --gpg option to gpg-zip does not work as
intended. The documentation indicates that this option can be used to
use a different gpg utility, but the implementation seems
defect. Instead of setting the option argument, it assigns "--gpg",
which is hardly disired.

My usecase is using a private encryption subkey on a yubikey, and I
didn't get it to work with gnupg 1.4. It does work fine with gpg2.

My test case is gpg-zip --list-archive --gpg gpg2 .../test.gpgzip

Please find a patch that fixes the issue is attached.

Reinhard


-- System Information:
Debian Release: jessie/sid
  APT prefers wily-updates
  APT policy: (500, 'wily-updates'), (500, 'wily-security'), (500, 'wily')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-34-generic (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnupg depends on:
ii  gpgv          1.4.18-7ubuntu1
ii  libbz2-1.0    1.0.6-8
ii  libc6         2.21-0ubuntu4.1
ii  libreadline6  6.3-8ubuntu1
ii  libusb-0.1-4  2:0.1.12-27
ii  zlib1g        1:1.2.8.dfsg-2ubuntu4

gnupg recommends no packages.

Versions of packages gnupg suggests:
ii  eog           3.16.3-1ubuntu2.1
pn  gnupg-curl    <none>
pn  gnupg-doc     <none>
ii  imagemagick   8:6.8.9.9-5ubuntu2
ii  libpcsclite1  1.8.14-1ubuntu1
pn  parcimonie    <none>

-- no debconf information
>From 57c91f130e0ecc71c65e4183e02b0d828fa7a3d6 Mon Sep 17 00:00:00 2001
From: Reinhard Tartler <siret...@tauware.de>
Date: Sun, 20 Mar 2016 15:54:45 -0400
Subject: [PATCH] unbreak gpg-zip --gpg gpg2

Fix the option --gpg so that it can be actually used.
---
 tools/gpg-zip.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/gpg-zip.in b/tools/gpg-zip.in
index d27b1f9..d7d752a 100644
--- a/tools/gpg-zip.in
+++ b/tools/gpg-zip.in
@@ -94,7 +94,8 @@ while test $# -gt 0 ; do
       exit 0
       ;;
     --gpg)
-      GPG=$1
+      GPG=$2
+      shift
       shift
       ;;
     --gpg-args)
-- 
2.5.0

Reply via email to