<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>58623</bug_id>
          
          <creation_ts>2004-07-27 22:07 0000</creation_ts>
          <short_desc>keychain 2.3.3 states incorrect number of keys to add</short_desc>
          <delta_ts>2004-07-28 18:54:32 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Hosted Projects</product>
          <component>Keychain</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>daniel@acceleration.net</reporter>
          <assigned_to>keychain@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>daniel@acceleration.net</who>
            <bug_when>2004-07-27 22:07:55 0000</bug_when>
            <thetext>keychain 2.3.3 claims that it wants to add one more key than I&apos;m feeding it.  When first started, keychain says &quot;Adding 3 keys(s)...&quot;, when I&apos;m telling it to use two.  However, it correctly adds the two keys.

I&apos;ll be attaching a patch after the initial bug submission, against keychain 2.3.3.

Reproducible: Always
Steps to Reproduce:
1. keychain ~/.ssh/identity ~/.ssh/id_rsa

Actual Results:  
keychain prints the following:

KeyChain 2.3.3; http://www.gentoo.org/projects/keychain
Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL

 * Initializing /home/dwc/.keychain/fortuna-sh file...
 * Initializing /home/dwc/.keychain/fortuna-csh file...
 * Starting ssh-agent
 * Adding 3 key(s)...
Enter passphrase for dwc@fortuna:
 * Identity added: /home/dwc/.ssh/identity (dwc@fortuna)
 * Identity added: /home/dwc/.ssh/id_rsa (/home/dwc/.ssh/id_rsa)

Expected Results:  
KeyChain 2.3.3; http://www.gentoo.org/projects/keychain
Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL

 * Initializing /home/dwc/.keychain/fortuna-sh file...
 * Initializing /home/dwc/.keychain/fortuna-csh file...
 * Starting ssh-agent
 * Adding 2 key(s)...
Enter passphrase for dwc@fortuna:
 * Identity added: /home/dwc/.ssh/identity (dwc@fortuna)
 * Identity added: /home/dwc/.ssh/id_rsa (/home/dwc/.ssh/id_rsa)

Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-mcpu=athlon-xp -O2 -fomit-frame-pointer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-mcpu=athlon-xp -O2 -fomit-frame-pointer -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache distcc sandbox userpriv&quot;
GENTOO_MIRRORS=&quot;http://open-systems.ufl.edu/mirrors/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://gentoo.oregonstate.edu&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://dwc.homedns.org/gentoo-portage&quot;
USE=&quot;3dnow X aalib acpi alsa apm avi berkdb cdr crypt cups divx4linux dvd encode
fbcon foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde
libg++ libwww mad maildir mikmod mmx motif mozilla mpeg ncurses nls oggvorbis
opengl oss pam pda pdflib perl png python qt quicktime readline sasl sdl slang
spell ssl svga tcpd tiff truetype x86 xml xml2 xmms xv xvid zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>daniel@acceleration.net</who>
            <bug_when>2004-07-27 22:11:51 0000</bug_when>
            <thetext>Created an attachment (id=36302)
Patch against keychain 2.3.3 to correct count

There may be a better way to accomplish this, but I couldn&apos;t come up with one. 
The patch makes a minor modification to the listmissing function.  When a new
key is found (i.e. one not already added to the agent), the patched function
tests if $lm_missing is zero-length, and only concatenates if $lm_missing
already contains something.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agriffis@gentoo.org</who>
            <bug_when>2004-07-28 18:54:32 0000</bug_when>
            <thetext>Thanks Daniel, fixed in 2.3.5 released today</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>36302</attachid>
            <date>2004-07-27 22:11 0000</date>
            <desc>Patch against keychain 2.3.3 to correct count</desc>
            <filename>keychain-2.3.3-key-count.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvYmluL2tleWNoYWluCTIwMDQtMDctMjUgMTE6Mjk6MDkuMDAwMDAwMDAwIC0wNDAw
CisrKyBrZXljaGFpbgkyMDA0LTA3LTI4IDAwOjU0OjM0Ljk2NTcxMzIwMCAtMDQwMApAQCAtNjEz
LDggKzYxMywxMiBAQAogICAgICAgICAgICAgICAgIDs7CiAgICAgICAgICAgICAqKQogICAgICAg
ICAgICAgICAgICMgbmVlZCB0byBhZGQgdGhpcyBrZXkKLSAgICAgICAgICAgICAgICBsbV9taXNz
aW5nPSIkbG1fbWlzc2luZworICAgICAgICAgICAgICAgIGlmIFsgLXogIiRsbV9taXNzaW5nIiBd
OyB0aGVuCisgICAgICAgICAgICAgICAgICAgIGxtX21pc3Npbmc9IiRsbV9rZmlsZSIKKyAgICAg
ICAgICAgICAgICBlbHNlCisgICAgICAgICAgICAgICAgICAgIGxtX21pc3Npbmc9IiRsbV9taXNz
aW5nCiAkbG1fa2ZpbGUiCisgICAgICAgICAgICAgICAgZmkKICAgICAgICAgICAgICAgICA7Owog
ICAgICAgICBlc2FjCiAgICAgZG9uZQo=
</data>        

          </attachment>
    </bug>

</bugzilla>