Bug 1723

Summary: ssh-copy-id gets confused when an agent has no loaded identities
Product: Portable OpenSSH Reporter: Colin Watson <cjwatson>
Component: MiscellaneousAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: djm
Priority: P2    
Version: 5.3p1   
Hardware: Other   
OS: Linux   
URL: http://bugs.debian.org/221675
Bug Depends on:    
Bug Blocks: 1743    
Attachments:
Description Flags
check ssh-add -L exit status none

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