Subject: bin/31261: ssh invokes xauth with bogus argument
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: netbsd-bugs
Date: 09/09/2005 07:57:52
>Number:         31261
>Category:       bin
>Synopsis:       ssh invokes xauth with bogus argument
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 09 07:57:52 +0000 2005
>Originator:     Mark Davies
>Release:        NetBSD 3.99.7
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
	
	
System: NetBSD city-art.mcs.vuw.ac.nz 3.99.7 NetBSD 3.99.7 (MCS_WORKSTATION) #0: Mon Aug 15 16:21:55 NZST 2005 mark@turakirae.mcs.vuw.ac.nz:/mnt/SAVE/build.obj/src/work/src/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
	When ssh calls xauth to get the X11 authentication token for the
	current display to pass to the remote end it invokes it with a bogus
	trailing "." argument.

	
>How-To-Repeat:
	ssh -X -v -v <host>
	and note the:
	debug2: x11_get_proto: /usr/X11R6/bin/xauth  list :0.0 . 2>/dev/null

	
>Fix:
	Apply the following.  This has been submitted to the openssh
	bugzilla.
	
Index: ssh.c
===================================================================
RCS file: /src/cvs/netbsd/src/crypto/dist/ssh/ssh.c,v
retrieving revision 1.33
diff -u -r1.33 ssh.c
--- ssh.c	23 Apr 2005 16:53:29 -0000	1.33
+++ ssh.c	7 Sep 2005 20:32:50 -0000
@@ -790,7 +790,7 @@
 			}
 		}
 		snprintf(cmd, sizeof(cmd),
-		    "%s %s%s list %s . 2>" _PATH_DEVNULL,
+		    "%s %s%s list %s 2>" _PATH_DEVNULL,
 		    options.xauth_location,
 		    generated ? "-f " : "" ,
 		    generated ? xauthfile : "",

cheers
mark

>Unformatted: