Commit 48e7d63
committed
Cygwin: fetch_account_from_windows: skip LookupAccountSid for SIDs known to fail
LookupAccountSid might take a long time if an SID cannot be resolved.
While we know some SIDs never resolved by LookupAccountSid, we call it
anyway and only handle them after it returned with error.
(Partially?) fix this latency problem by skipping the LookupAccountSid
call for SID groups never resolved anyway.
Reported-by: Lluís Batlle i Rossell <[email protected]>
Fixes: 1ca20a1 ("Introduce reading passwd/group entries from SAM/AD.")
Signed-off-by: Corinna Vinschen <[email protected]>
(cherry picked from commit 008a02bc722569fc492b757a2cb2f6ef1c17a6a3)1 parent 17765ac commit 48e7d63
2 files changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1983 | 1983 | | |
1984 | 1984 | | |
1985 | 1985 | | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
1986 | 2007 | | |
1987 | 2008 | | |
1988 | 2009 | | |
| |||
0 commit comments