By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 889
Collapse All | Expand All

(-)a/kwin/utils.cpp (+23 lines)
Lines 18-23 Link Here
18
#include "utils.h"
18
#include "utils.h"
19
19
20
#include <unistd.h>
20
#include <unistd.h>
21
#include <string.h>
22
#include <netdb.h>
21
23
22
#ifndef KCMRULES
24
#ifndef KCMRULES
23
25
Lines 323-328 bool isLocalMachine( const TQCString& host ) Link Here
323
            if( host == hostnamebuf )
325
            if( host == hostnamebuf )
324
                return true;
326
                return true;
325
            }
327
            }
328
        else
329
            { // e.g. LibreOffice likes to give FQDN, even if gethostname() doesn't include domain
330
            struct addrinfo hints, *res, *addr;
331
            bool is_local = false;
332
333
            memset (&hints, 0, sizeof (hints));
334
            hints.ai_family = PF_UNSPEC;
335
            hints.ai_socktype = SOCK_STREAM;
336
            hints.ai_flags |= AI_CANONNAME;
337
338
            if( getaddrinfo( host, NULL, &hints, &res ) != 0)
339
                return false;
340
            for(addr = res; !is_local && addr; addr = addr->ai_next)
341
                {
342
                if( res->ai_canonname &&
343
                    host == TQCString( res->ai_canonname ))
344
                    is_local = true;
345
                }
346
            freeaddrinfo(res);
347
            return is_local;
348
            }
326
        }
349
        }
327
    return false;
350
    return false;
328
    }
351
    }

Return to bug 889