Fixed issue with ICEAuthority ownership stealing when programs were

run using tdesu in a user session. This resolves issue TDE/tde#77.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8ce8530d92)
r14.0.x
Michele Calgaro 3 years ago
parent 96009c85e7
commit 3fbf51569c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -359,6 +359,7 @@ int PtyProcess::exec(const TQCString &command, const QCStringList &args)
putenv(const_cast<TQCString&>(*it).data());
}
unsetenv("TDE_FULL_SESSION");
unsetenv("XDG_RUNTIME_DIR");
// set temporarily LC_ALL to C, for su (to be able to parse "Password:")
const char* old_lc_all = getenv( "LC_ALL" );

Loading…
Cancel
Save