summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/sec_auth.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-02-26 20:47:56 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-02-26 20:47:56 +0000
commite80f6dc8f004a687271c5172ea14d3497ec6c39b (patch)
tree04192b345ce37f8248e70f2b5ca644648029ddd7 /winsup/cygwin/sec_auth.cc
parent830f7b740b1c84904439cf14a28da5a60126dff4 (diff)
downloadcygnal-e80f6dc8f004a687271c5172ea14d3497ec6c39b.tar.gz
cygnal-e80f6dc8f004a687271c5172ea14d3497ec6c39b.tar.bz2
cygnal-e80f6dc8f004a687271c5172ea14d3497ec6c39b.zip
* autoload.cc: Make autoloaded ntdll function non-optional. Ditto for
secur32 functions, except for LsaRegisterLogonProcess. Change return value to ERROR_PROC_NOT_FOUND. Explain why. * sec_auth.cc (lsaauth): Handle ERROR_PROC_NOT_FOUND from call to LsaRegisterLogonProcess when generating the errno value.
Diffstat (limited to 'winsup/cygwin/sec_auth.cc')
-rw-r--r--winsup/cygwin/sec_auth.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc
index 8af0b9837..9f27f9d6d 100644
--- a/winsup/cygwin/sec_auth.cc
+++ b/winsup/cygwin/sec_auth.cc
@@ -1,7 +1,7 @@
/* sec_auth.cc: NT authentication functions
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007, 2008, 2009, 2010 Red Hat, Inc.
+ 2006, 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
This file is part of Cygwin.
@@ -967,7 +967,8 @@ lsaauth (cygsid &usersid, user_groups &new_groups, struct passwd *pw)
if (ret != STATUS_SUCCESS)
{
debug_printf ("LsaRegisterLogonProcess: %p", ret);
- __seterrno_from_win_error (LsaNtStatusToWinError (ret));
+ __seterrno_from_win_error (ret == ERROR_PROC_NOT_FOUND
+ ? ret : LsaNtStatusToWinError (ret));
goto out;
}
else if (GetLastError () == ERROR_PROC_NOT_FOUND)