[Xquartz-dev] Fwd: Warning: No xauth data;
using fake authentication data, for X11 forwarding
Jeremy Huddleston
jeremyhu at berkeley.edu
Sat Dec 1 19:54:14 PST 2007
yep, here's the patch to xauth. I'll roll this in and commit to git
as well...
I have your updated X11.app in my local package now. If someone could
send me a license file or a README, I'd be very happy =)
--Jeremy
Begin forwarded message:
> From: Martin Costabel <costabel at wanadoo.fr>
> Date: November 13, 2007 02:13:55 PST
> To: Anton Rang <rang at mac.com>
> Cc: X11 List Mailing <x11-users at lists.apple.com>
> Subject: Re: Warning: No xauth data; using fake authentication data,
> for X11 forwarding
>
> Anton Rang wrote:
>> On Nov 12, 2007, at 10:25 AM, M. Stanley Bubien wrote:
>>>> Unless your X connection is not working, I believe you can safely
>>>> ignore that error message.
>>>
>>> Well, more to the point for me... why does this happen? It
>>> certainly
>>> shouldn't, and I've done everything I can to eliminate the message.
>> You can't eliminate it, I suspect.
>> ssh is running the command
>> xauth list $DISPLAY (e.g. xauth list /tmp/launch-blah/:0)
>> and xauth is generating the output
>> xauth: (argv):1: bad display name "/tmp/launch-blah/:0" in "list"
>> command
>> I'm not quite sure what the "fix" here is, since the Xauth data
>> probably
>> isn't generated until the X server starts, which won't happen until
>> sshd
>> requests that the forwarding happen -- and I think that may be
>> after the
>> authentication data is transmitted to sshd.
>> Perhaps best would be to simply disable the warning in sshd for
>> Darwin....
>
> ... or teach xauth about the weird new display names.
>
> Here is a little patch against xauth-X11R7.2-1.0.2 from X11apps-13
> that
> does this. As before, the warning will only disappear if there is an
> existing ~/.Xauthority file.
>
> --
> Martin
>
> diff -ur X11apps-13/xauth/xauth-X11R7.2-1.0.2/process.c
> X11apps-13_corr/xauth/xauth-X11R7.2-1.0.2/process.c
> --- X11apps-13/xauth/xauth-X11R7.2-1.0.2/process.c 2007-01-09
> 00:21:24.000000000 +0100
> +++ X11apps-13_corr/xauth/xauth-X11R7.2-1.0.2/process.c 2007-11-13
> 08:44:28.000000000 +0100
> @@ -485,6 +485,9 @@
> if (cp && strncmp (cp, "/unix:", 6) == 0)
> prelen = (cp - displayname);
>
> + if (strncmp (displayname, "/tmp/launch", 11) == 0)
> + displayname = strrchr(displayname, '/') + 1;
> +
> if (!parse_displayname (displayname + ((prelen > 0) ? prelen +
> 1 : 0),
> &family, &host, &dpynum, &scrnum, &rest)) {
> return False;
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list (X11-users at lists.apple.com)
> Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/jeremyhu%40uclink.berkeley.edu
>
> This email sent to jeremyhu at uclink.berkeley.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3040 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20071201/41e79316/smime-0001.bin
More information about the Xquartz-dev
mailing list