diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-11-28 23:51:20 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-11-28 23:51:20 +0900 |
commit | 6db0c5f228d12fc1a1ef861717d1dc4a3c9d6a6c (patch) | |
tree | 972d106294d740e92c586300da66d011bfe9d13e /tdepasswd/tdepasswd.cpp | |
parent | 6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b (diff) | |
download | tdebase-6db0c5f228d12fc1a1ef861717d1dc4a3c9d6a6c.tar.gz tdebase-6db0c5f228d12fc1a1ef861717d1dc4a3c9d6a6c.zip |
Improved previous commit using local8Bit() in place of utf8() when a
password is transmitted over pipes to other processes.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdepasswd/tdepasswd.cpp')
-rw-r--r-- | tdepasswd/tdepasswd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdepasswd/tdepasswd.cpp b/tdepasswd/tdepasswd.cpp index 41567bf28..a6015eacc 100644 --- a/tdepasswd/tdepasswd.cpp +++ b/tdepasswd/tdepasswd.cpp @@ -52,7 +52,7 @@ int main(int argc, char **argv) TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if (args->count()) - user = TQString(args->arg(0)); + user = TQString::fromLocal8Bit(args->arg(0)); /* You must be able to run "tdepasswd loginName" */ if ( !user.isEmpty() && user!=KUser().loginName() && !bRoot) |