After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 376287 - Vino shows the wrong host in 2.17.2
Vino shows the wrong host in 2.17.2
Status: RESOLVED FIXED
Product: vino
Classification: Applications
Component: Server
2.17.x
Other All
: Normal minor
: ---
Assigned To: Vino Maintainer(s)
Vino Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-11-17 12:21 UTC by Jonh Wendell
Modified: 2009-09-30 14:05 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Proposed patch (1.50 KB, patch)
2006-11-17 12:22 UTC, Jonh Wendell
needs-work Details | Review

Description Jonh Wendell 2006-11-17 12:21:18 UTC
Please describe the problem:
When a user tries to access my desktop, vino shows a host like '::400:0'. That's wrong.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Jonh Wendell 2006-11-17 12:22:16 UTC
Created attachment 76754 [details] [review]
Proposed patch
Comment 2 Mark McLoughlin 2006-11-17 15:48:19 UTC
John: cool stuff, it looks like the right approach

Comments:

  - I don't think we want to use NI_NOFQDN - I think we do actually want
    to display the fqdn if we can

  - I'm a little worried about the portability of sockaddr_storage and
    getnameinfo() ... but I guess we'll just fix it if and when people 
    run into problems building on crufty platforms :-)

  - Just delete the rfbSockaddrToHostname() function

  - Don't comment out code ... just delete it

  - add a new line between getpeername() and getnameinfo() to make things
    easier to read ... also, perhaps wrap some of the getnameinfo() args
    to the next line

Once you've fixed up those, and your CVS account is activated ... just go ahead and commit
Comment 3 Jonh Wendell 2006-11-17 22:46:23 UTC
2006-11-17  Jonh Wendell <jwendell@cvs.gnome.org>

        Fixes bug #376287 - Vino shows the wrong host in 2.17.2

        * vino/server/libvncserver/rfbserver.c : remove rfbSockaddrToHostname()
        function and updated rfbNewClient() so that it gets the right ip/name
        from remote machine.
Comment 4 Carlos Eduardo Rodrigues Diógenes 2009-09-30 13:49:38 UTC
What was the patch applied to solve this? The patch attached to this bug has the tag 'needs-work', so I guess that this is not the bug solver, although it's appear to do what the changelog say.
Comment 5 Jonh Wendell 2009-09-30 14:05:54 UTC
Carlos, try to navigate in svn/git history to get the commit in this date.
I've got this: http://git.gnome.org/cgit/vino/commit/?id=8882f606a9c9843780164b1c9c2f7cbd7adfec32