summaryrefslogtreecommitdiffstats
path: root/cert-updater/main.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-04-06 16:39:59 +0200
committerSlávek Banko <[email protected]>2019-04-06 16:39:59 +0200
commitfd16b3640527b9da8e1df97f5e25849e0313ac64 (patch)
treec1e6e0f363192d4420e4b72b2f54ef7bdec70aed /cert-updater/main.cpp
parentf3d48d7b4565345f5f06513bf7a6ecd59457e334 (diff)
downloadkcmldapcontroller-fd16b3640527b9da8e1df97f5e25849e0313ac64.tar.gz
kcmldapcontroller-fd16b3640527b9da8e1df97f5e25849e0313ac64.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'cert-updater/main.cpp')
-rw-r--r--cert-updater/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cert-updater/main.cpp b/cert-updater/main.cpp
index 4f76223..7e49c13 100644
--- a/cert-updater/main.cpp
+++ b/cert-updater/main.cpp
@@ -318,7 +318,7 @@ int main(int argc, char *argv[])
// Get LDAP user uid/gid
struct passwd *pwd;
- pwd = getpwnam(m_ldapUserName);
+ pwd = getpwnam(m_ldapUserName.local8Bit());
slapd_uid = pwd->pw_uid;
slapd_gid = pwd->pw_gid;