Cygwin: Revert attempting to unload user profile after use
Revert "Cywin: user profile: unload impersonation user profile on exit" Revert "Cygwin: seteuid: allow inheriting impersonation user profile handle" Revert "Cygwin: user profile: add debug output to unload_user_profile" Revert "Cygwin: user profile: Make an effort to unload unused user profiles" This reverts commitbcb33dc4f0
. This reverts commitdd3730ed9c
. This reverts commit8eee25241e
. This reverts commit71b8777a71
. This patchset actually results in the following problem: - After a couple of ssh logon/logoff attempts, an interactive session of the same user loging in, is broken. Apparently UnloadUserProfile manages to unload the user's profile even while a parallel interactive session still uses the user's profile. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -502,7 +502,6 @@ PWCHAR get_user_profile_directory (PCWSTR sidstr, PWCHAR path, SIZE_T path_len);
|
||||
|
||||
/* Load user profile if it's not already loaded. */
|
||||
HANDLE load_user_profile (HANDLE token, struct passwd *pw, cygpsid &sid);
|
||||
bool unload_user_profile (HANDLE token, HANDLE profile);
|
||||
|
||||
HANDLE lsa_open_policy (PWCHAR server, ACCESS_MASK access);
|
||||
void lsa_close_policy (HANDLE lsa);
|
||||
|
Reference in New Issue
Block a user