summaryrefslogtreecommitdiffstats
path: root/tdepasswd/passwd.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-11-28 23:51:20 +0900
committerMichele Calgaro <[email protected]>2018-11-28 23:51:20 +0900
commit6db0c5f228d12fc1a1ef861717d1dc4a3c9d6a6c (patch)
tree972d106294d740e92c586300da66d011bfe9d13e /tdepasswd/passwd.cpp
parent6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b (diff)
downloadtdebase-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 <[email protected]> Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdepasswd/passwd.cpp')
-rw-r--r--tdepasswd/passwd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdepasswd/passwd.cpp b/tdepasswd/passwd.cpp
index 6d6d45675..ab0e913a2 100644
--- a/tdepasswd/passwd.cpp
+++ b/tdepasswd/passwd.cpp
@@ -66,7 +66,7 @@ PasswdProcess::~PasswdProcess()
int PasswdProcess::checkCurrent(const TQString &oldpass)
{
- return exec(oldpass.utf8(), 0L, 1);
+ return exec(oldpass.local8Bit(), 0L, 1);
}