Commit 84fc5612 authored by Russ Fish's avatar Russ Fish

Hide Windows password from logs when not debugging.

parent 255fec72
......@@ -52,7 +52,8 @@ int be_user(const char *user)
fclose(pwd_file);
if (matched) {
info("cygwin_logon_user: name %s, password '%s'...",
pw->pw_name, password);
pw->pw_name,
0 ? password : "(hidden)");
HANDLE hToken = cygwin_logon_user(pw, password);
if (hToken != INVALID_HANDLE_VALUE) {
info(" suceeded\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment