public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: lsaauth: Drop outdated test for loading Secur32.dll
Date: Sat, 26 Jan 2019 15:24:00 -0000	[thread overview]
Message-ID: <20190126152435.73197.qmail@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c524a915a55f4f7a88e706f0311195ac19d382cf

commit c524a915a55f4f7a88e706f0311195ac19d382cf
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Fri Jan 25 20:01:11 2019 +0100

    Cygwin: lsaauth: Drop outdated test for loading Secur32.dll
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/sec_auth.cc | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc
index af92763..1d07e37 100644
--- a/winsup/cygwin/sec_auth.cc
+++ b/winsup/cygwin/sec_auth.cc
@@ -1061,7 +1061,6 @@ lsaauth (cygsid &usersid, user_groups &new_groups)
 
   /* Register as logon process. */
   RtlInitAnsiString (&name, "Cygwin");
-  SetLastError (0);
   status = LsaRegisterLogonProcess (&name, &lsa_hdl, &sec_mode);
   if (status != STATUS_SUCCESS)
     {
@@ -1069,11 +1068,6 @@ lsaauth (cygsid &usersid, user_groups &new_groups)
       __seterrno_from_nt_status (status);
       goto out;
     }
-  else if (GetLastError () == ERROR_PROC_NOT_FOUND)
-    {
-      debug_printf ("Couldn't load Secur32.dll");
-      goto out;
-    }
   /* Get handle to our own LSA package. */
   RtlInitAnsiString (&name, CYG_LSA_PKGNAME);
   status = LsaLookupAuthenticationPackage (lsa_hdl, &name, &package_id);


                 reply	other threads:[~2019-01-26 15:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190126152435.73197.qmail@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).