From 8eee25241e86fc596acde25c7c53723b75afee30 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 23 Feb 2019 20:46:48 +0100 Subject: [PATCH] Cygwin: user profile: add debug output to unload_user_profile Signed-off-by: Corinna Vinschen --- winsup/cygwin/sec_auth.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc index 59ee55339..a4e7458b3 100644 --- a/winsup/cygwin/sec_auth.cc +++ b/winsup/cygwin/sec_auth.cc @@ -309,7 +309,10 @@ load_user_profile (HANDLE token, struct passwd *pw, cygpsid &usersid) bool unload_user_profile (HANDLE token, HANDLE profile) { - return UnloadUserProfile (token, profile); + bool ret = UnloadUserProfile (token, profile); + if (!ret) + debug_printf ("UnloadUserProfile, %E"); + return ret; } HANDLE