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 3 years ago committed by Slávek Banko
parent 46d17adfe5
commit e16086bb8a
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

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

Loading…
Cancel
Save