g10: Fix --list-packets.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 28 Jun 2016 06:56:48 +0000 (15:56 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 28 Jun 2016 07:10:14 +0000 (16:10 +0900)
commit39e32d375ef72874848f138d941d6d17f5aff85c
tree5b7c08d658d073e9963c48ea76a9863e0ef3776d
parentdb246f8b18b77314938e596b8217bd97223d5aad
g10: Fix --list-packets.

* g10/gpg.c (main): Call set_packet_list_mode after assignment of
opt.list_packets.
* g10/mainproc.c (do_proc_packets): Don't stop processing with
--list-packets as the comment says.
* g10/options.h (list_packets): Fix the comment.
* g10/parse-packet.c: Fix the condition for opt.list_packets.

--

(backport from 2.0 commit 4f336ed780cc2783395f3ff2b12b3ebb8e097f7b
which is backport of master
commit 52f65281f9743c42a48bf5a3354c9ab0ecdb681a)

Debian-bug-id: 828109
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/gpg.c
g10/mainproc.c
g10/options.h
g10/parse-packet.c