Package: monkeysphere
Version: 0.35-2
Severity: normal
Tags: patch

Hi.

It seems that ssh-add is unable to import a key from a pipe on
my system, thus making "monkeysphere s" not working.

I don't know why you prefer to use a pipe instead of a temporary
file, but the attached patch fixes this issue.

Thanks for working on monkeysphere, it's really useful.

Giovanni.



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

Kernel: Linux 2.6.37-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages monkeysphere depends on:
ii  adduser                       3.112+nmu2 add and remove users and groups
ii  gnupg                         1.4.11-3   GNU privacy guard - a free PGP rep
ii  libcrypt-openssl-rsa-perl     0.25-1+b1  Perl module providing basic RSA fu
ii  lockfile-progs                0.1.15     Programs for locking and unlocking
ii  perl [libdigest-sha-perl]     5.10.1-17  Larry Wall's Practical Extraction 

Versions of packages monkeysphere recommends:
ii  cron                          3.0pl1-116 process scheduling daemon
ii  netcat                        1.10-39    TCP/IP swiss army knife -- transit
ii  netcat-openbsd [netcat]       1.89-4     TCP/IP swiss army knife
ii  netcat-traditional [netcat]   1.10-39    TCP/IP swiss army knife
ii  openssh-client                1:5.8p1-2  secure shell (SSH) client, for sec
ii  ssh-askpass-gnome [ssh-askpas 1:5.8p1-2  interactive X program to prompt us

Versions of packages monkeysphere suggests:
ii  msva-perl [monkeysphere-valid 0.8-2      Cryptographic identity validation 

-- Configuration Files:
/etc/monkeysphere/monkeysphere-authentication.conf changed [not included]
/etc/monkeysphere/monkeysphere-host.conf changed [not included]
/etc/monkeysphere/monkeysphere.conf changed [not included]

-- no debconf information
--- subkey_to_ssh_agent 2011-02-25 20:41:39.000000000 +0100
+++ /root/subkey_to_ssh_agent   2011-03-15 17:20:20.000000000 +0100
@@ -105,14 +105,15 @@
            (cd "$workingdir" && ssh-add -d "$kname") || keysuccess="$?"
        else
            # we're adding the subkey:
-           mkfifo "$workingdir/$kname"
-           gpg_user --passphrase-fd 3 3<"$workingdir/passphrase" \
+           touch "$workingdir/$kname"
+            chmod 600 "$workingdir/$kname"
+           (gpg_user --passphrase-fd 3 3<"$workingdir/passphrase" \
                --export-options 
export-reset-subkey-passwd,export-minimal,no-export-attributes \
-               --export-secret-subkeys --no-armor "0x${subkey}!" | openpgp2ssh 
"$subkey" > "$workingdir/$kname" &
-           (cd "$workingdir" && DISPLAY=nosuchdisplay SSH_ASKPASS=/bin/false 
ssh-add "$@" "$kname" </dev/null )&
+               --export-secret-subkeys --no-armor "0x${subkey}!" | openpgp2ssh 
"$subkey" > "$workingdir/$kname" &&
+           (cd "$workingdir" && DISPLAY=nosuchdisplay SSH_ASKPASS=/bin/false 
ssh-add "$@" "$kname" </dev/null ))&
 
            passphrase_prompt "Enter passphrase for key $kname: " 
"$workingdir/passphrase"
-           wait %2 || keysuccess="$?"
+           wait %1 || keysuccess="$?"
        fi
 
        rm -f "$workingdir/$kname"

Reply via email to