Bug 1723 - ssh-copy-id gets confused when an agent has no loaded identities
Summary: ssh-copy-id gets confused when an agent has no loaded identities
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: 5.3p1
Hardware: Other Linux
: P2 normal
Assignee: Assigned to nobody
URL: http://bugs.debian.org/221675
Keywords:
Depends on:
Blocks: V_5_5
  Show dependency treegraph
 
Reported: 2010-03-02 00:39 AEDT by Colin Watson
Modified: 2010-04-16 15:50 AEST (History)
1 user (show)

See Also:


Attachments
check ssh-add -L exit status (392 bytes, patch)
2010-03-02 00:39 AEDT, Colin Watson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Watson 2010-03-02 00:39:43 AEDT
Created attachment 1797 [details]
check ssh-add -L exit status

When an agent has no loaded identities, 'ssh-add -L' prints "The agent has no identities.".  ssh-copy-id gets confused by this.  It should check the exit status from 'ssh-add -L' before trying to use its output.

The attached patch is by Adeodato Simó <asp16@alu.ua.es>.
Comment 1 Damien Miller 2010-03-26 11:18:44 AEDT
Applied - will be in 5.5p1
Comment 2 Damien Miller 2010-04-16 15:50:45 AEST
Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1