Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
windows:mingw:win32
mingw32-kdelibs4
0001-Fix-empty-loginName-in-case-domain-control...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-empty-loginName-in-case-domain-controller-is-not.patch of Package mingw32-kdelibs4
From 868c75bfeb4e7218534beb3774bb2145f6c9288a Mon Sep 17 00:00:00 2001 From: Ralf Habacker <ralf.habacker@freenet.de> Date: Wed, 10 Jan 2018 23:39:58 +0100 Subject: [PATCH] Fix empty loginName() in case domain controller is not reachable Use the username returned from GetUserNameW() instead. BUG:388795 FIXED-IN:4.14.1 --- kdecore/util/kuser_win.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kdecore/util/kuser_win.cpp b/kdecore/util/kuser_win.cpp index cae926dc5c..487756a558 100644 --- a/kdecore/util/kuser_win.cpp +++ b/kdecore/util/kuser_win.cpp @@ -33,6 +33,7 @@ class KUser::Private : public KShared public: PUSER_INFO_11 userInfo; PSID sid; + QString userName; Private() : userInfo(0), sid(0) {} @@ -107,6 +108,7 @@ class KUser::Private : public KShared NetApiBufferFree(servername); servername = 0; } + userName = name; } ~Private() @@ -186,7 +188,7 @@ bool KUser::isSuperUser() const QString KUser::loginName() const { - return (d->userInfo ? QString::fromUtf16((ushort *) d->userInfo->usri11_name) : QString()); + return (d->userInfo ? QString::fromUtf16((ushort *) d->userInfo->usri11_name) : d->userName); } #ifndef KDE_NO_DEPRECATED -- 2.12.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor