[newlib-cygwin] Cygwin: user profile: add debug output to unload_user_profile
Corinna Vinschen
corinna@sourceware.org
Sat Feb 23 20:06:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8eee25241e86fc596acde25c7c53723b75afee30
commit 8eee25241e86fc596acde25c7c53723b75afee30
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Sat Feb 23 20:46:48 2019 +0100
Cygwin: user profile: add debug output to unload_user_profile
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
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 59ee553..a4e7458 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
More information about the Cygwin-cvs
mailing list