Package: jetring
Version: 0.16
Severity: normal
Tags: patch

Hi,

I noticed jetring-gen creating an superfluous modify-XXX file after I
added my key to the debian-maintainers keyring, which contained an
import for a key that was already in the keyring.

Some investigation turned up that jetring-diff incorrectly shows a
difference in the (previously) last key of a keyring, as you can see in
the following example:

matth...@xanthe:/tmp$ cp /usr/share/keyrings/debian-maintainers.gpg .
matth...@xanthe:/tmp$ gpg  --export matthijs > key
matth...@xanthe:/tmp$ gpg --no-default-keyring --keyring 
./debian-maintainers.gpg --import < key
gpg: key 8A2FAFBC: public key "Matthijs Kooijman <matth...@stdin.nl>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: public key of ultimately trusted key E210F51B not found
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
matth...@xanthe:/tmp$ jetring-diff /usr/share/keyrings/debian-m
debian-maintainers.gpg              debian-multimedia-keyring.gpg       
debian-multimedia-removed-keys.gpg
matth...@xanthe:/tmp$ jetring-diff /usr/share/keyrings/debian-maintainers.gpg 
./debian-maintainers.gpg
gpg: /tmp/jetring.FbLxEPmyx0/trustdb.gpg: trustdb created
warning: cannot write cache /usr/share/keyrings/debian-maintainers.gpg.cache
 sub:-:1024:16:3B1AFDCBEA7C615D:-::::::e
 pub:-:4096:1:792152527B75921E:-:1275157534::-:::scESC
 uid:-::::-::FBFCBA76BCE2FC950DA3FD7EF15A2A6E5B06DACF::Antoine Beaupré (work) 
<anar...@koumbit.org>
 uid:-::::-::96A6CB81581D15D8C3A95CDD2275406F3B9725F4::Antoine Beaupré (home 
address) <anar...@anarcat.ath.cx>
-sub:-:4096:1:A51D5B109C5A5581:-:1275158183:::::e
+pub:-:1024:17:CF49D0E68A2FAFBC:-:::-:::scESC
+uid:-::::-::0A19F9509B3C127CA6E79A40F6BD5C2A92824463::Matthijs Kooijman 
<matth...@stdin.nl>
+uid:-::::-::688A23968448890ABCCB6D3ACC5814EC9A299F90::Matthijs Kooijman 
<m.kooij...@student.utwente.nl>
+uid:-::::-::E8D57A74FA062C14EE2CA43CD2719D2E86D7A2E6::Matthijs Kooijman - 
Brevidius <matth...@brevidius.nl>
+uid:-::::-::36AF6323DCDF9663986050F99A34674156F5A81F::Matthijs Kooijman - 
Inter-/Actief/ <matthijs.kooij...@inter-actief.net>
+uid:-::::-::E17DBBB8FC61EDAC78A54BC5AB86A6034209EFFF::Matthijs Kooijman - 
Inter-/Actief/ <matthijs.kooij...@inter-actief.utwente.nl>


The -sub... line halfway the diff is incorrect, it would mean a part of
Antoine's key would be removed (which really isn't the case).

It turns out this is caused by a subtle bug in jetring-diff's parsing function.
I've prepared a patch, which I will send as a reply to this message.

Gr.

Matthijs

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-rc4 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages jetring depends on:
ii  gnupg                         1.4.9-4    GNU privacy guard - a free PGP rep

jetring recommends no packages.

jetring suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to