[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Bug#2561: kfm hangs at suns with long hostnames
From:       David Faure <faure () kde ! org>
Date:       2000-01-25 18:56:33
[Download RAW message or body]

Got that bug report + patch already some time ago.
Well kfm is dead so there's no point in applying it, and konqueror
doesn't have this thing anymore.
But do you know if similar code (using the hostname to get the display)
is still in KDE ?
DCOPserver, perhaps ?
Stephan : the new kioslave's sockets ?

On Tue, Jan 25, 2000 at 05:59:37PM +0100, AndreaS Maier wrote:
> 
> Package: kfm
> Version: 1.1.2
> 
> I am using: Solaris7 (SunOS 5.7) with patches 11/99
>             kde 1.1.2 precompiled (from your ftp server)
> 
> Bug in 'kdelibs-1.1.2/kfmlib/kfm.cpp', function 'displayName' lines 33-57:
> 	kfm.cpp:49:	if (gethostname(name, 25) == 0)
> 
> If we have a long hostname (25 chars or more, like an FQN) the string in
> 'name' will not be null-terminated. SUN man pages say:
> 	The  returned name is null-terminated unless insufficient space
> 	is provided.
> 
> The result is that the socket for kioslave to talk to kfm is not set up in
> a usable way.
> 
> Patch: use 'gethostname(name, 2500)' or check in 'name' for null
> 	termination.
> 
> 
> Bug in 'kdelibs-1.1.2/kfmlib/kfm.cpp', function 'displayName' lines 33-57:
> 	kfm.cpp:43:	if ( d.find( '.' ) == -1 )
> 				d += ".0";
> 
> I think that this line of code should give a ':0.0' display name if it is
> ':0', but this does not work if you use FQNs (e.g. mail.cosy.sbg.ac.at:0)
> 
> 
> Thank you,
> -andi
> 
> -- 
> | Andreas Maier                     University of Salzburg               |
> | (andi@cosy.sbg.ac.at)             Department of Computing Sciences     |
> | Tel. +43/(0)662/8044-6339         Jakob Haringerstr. 2                 |
> | Fax. +43/(0)662/8044-611          5020 Salzburg / Austria, Europe      |
> 

-- 
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic