Subject: bin/11320: ssh-add sits in exec() failed loop if no X11R6/bin/ssh-askpass
To: None <gnats-bugs@gnats.netbsd.org>
From: None <abs@mono.org>
List: netbsd-bugs
Date: 10/27/2000 01:34:14
>Number:         11320
>Category:       bin
>Synopsis:       ssh-add sits in exec() failed loop if no X11R6/bin/ssh-askpass
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 27 01:34:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        1.5_BETA - Thu Oct 26 2000
>Organization:

		David/absolute
				       -- www.netbsd.org: No hype required --
>Environment:
	
System: NetBSD odysseus.mono.org 1.5_BETA NetBSD 1.5_BETA (_ODYSSEUS_) #0: Thu Oct 26 21:10:13 BST 2000 root@odysseus.mono.org:/home/netbsd/src/sys/arch/i386/compile/_ODYSSEUS_ i386


>Description:
	If /usr/X11R6/bin/ssh-askpass is missing, and ssh-add is called without
	a tty it sits in loop generating

    ssh_askpass: exec(/usr/X11R6/bin/ssh-askpass): No such file or directory

	.xsession-errors gets rather boring at this point.

>How-To-Repeat:
	Run ssh-add without a tty without ssh-askpass installed, such as
	when running XFree86 4.0.1 for graphics card support.

>Fix:
	1) Put some default upper limit on the times ssh-askpass is called.
	   Maybe even 1000.

	2) If using the pkgsrc ssh-askpass, ssh-add will need to look in
	   both /usr/X11R6/bin and the pkgsrc prefix if xpkgwedge is installed.
>Release-Note:
>Audit-Trail:
>Unformatted: