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>2014-03-19 17:05:33 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-03-19 17:05:33 +0400
commit40e0c34e9cf1ccd64725c0079467e0e359ac0cad (patch)
treef1e2df60bda6d4f0dc7bb86794f38e3a35267249 /winsup/cygwin/passwd.cc
parent203cd39dfe8ee880fbd48d014d698ac21c67af92 (diff)
* fhandler_dsp.cc (fhandler_dev_dsp::fixup_after_fork): Actually call
_fixup_after_fork rather than looping forever. (fhandler_dev_dsp::fixup_after_exec): Ditto.
Diffstat (limited to 'winsup/cygwin/passwd.cc')
-rw-r--r--winsup/cygwin/passwd.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc
index 35a7ecf0b..b0e5ff8de 100644
--- a/winsup/cygwin/passwd.cc
+++ b/winsup/cygwin/passwd.cc
@@ -566,7 +566,12 @@ pg_ent::enumerate_ad ()
else if ((td = cygheap->dom.trusted_domain (resume - 1)))
{
++resume;
- if ((td->Flags & DS_DOMAIN_PRIMARY)
+ /* Ignore primary domain in list of trusted domains only if all
+ trusted domains are enumerated anyway. This handles an
+ annoying backward compatibility problem in mkpasswd/mkgroup.
+ Without this test, `mkpasswd -d PRIMARY_DOMAIN' wouldn't
+ work as expected. */
+ if (((enums & ENUM_TDOMS_ALL) && td->Flags & DS_DOMAIN_PRIMARY)
|| !td->DomainSid
|| (!nss_db_enum_tdom (td->NetbiosDomainName)
&& !nss_db_enum_tdom (td->DnsDomainName))