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)
v3.5.13-sru
Michele Calgaro 2 years ago committed by Slávek Banko
parent 46d17adfe5
commit e16086bb8a
Signed by: SlavekB
GPG Key ID: 608F5293A04BE668

@ -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