Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-05-14 18:14:19 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-05-14 18:14:19 +0400
commit5aac6665c719ab4f90890591dffb166a608f32de (patch)
tree15b040c9ca4e654abb7d8501009cca12b79f9513
parentdf7320e1ba746744947ebbd91641ee8720e803e4 (diff)
* security.cc (subauth): Check if Secur32.dll could be loaded.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/security.cc5
2 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 818532520..41310f5dd 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+Mon May 14 16:13:00 2001 Corinna Vinschen <corinna@vinschen.de>
+
+ * security.cc (subauth): Check if Secur32.dll could be loaded.
+
Sun May 13 22:49:04 2001 Christopher Faylor <cgf@cygnus.com>
* path.cc (path_conv::check): Revert allow_ntsec check so that volume
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc
index 9f5605ac0..5755cc3c5 100644
--- a/winsup/cygwin/security.cc
+++ b/winsup/cygwin/security.cc
@@ -195,6 +195,11 @@ subauth (struct passwd *pw)
set_errno (LsaNtStatusToWinError(ret));
return INVALID_HANDLE_VALUE;
}
+ else if (GetLastError () == ERROR_PROC_NOT_FOUND)
+ {
+ debug_printf ("Couldn't load Secur32.dll");
+ return INVALID_HANDLE_VALUE;
+ }
/* Get handle to MSV1_0 package. */
str2lsa (name, MSV1_0_PACKAGE_NAME);
ret = LsaLookupAuthenticationPackage(lsa_hdl, &name, &package_id);