From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29271 invoked by alias); 18 Feb 2014 19:12:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 29255 invoked by uid 89); 18 Feb 2014 19:12:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Feb 2014 19:12:19 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 198305208C4; Tue, 18 Feb 2014 20:12:17 +0100 (CET) Date: Tue, 18 Feb 2014 19:13:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Testers needed: New passwd/group handling in Cygwin Message-ID: <20140218191217.GM2246@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <32194bb90b56df487127030e4af03a81.squirrel@webmail.xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="P+5wBWHyMmVhWeqO" Content-Disposition: inline In-Reply-To: <32194bb90b56df487127030e4af03a81.squirrel@webmail.xs4all.nl> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-02/txt/msg00481.txt.bz2 --P+5wBWHyMmVhWeqO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2425 On Feb 18 19:14, J.H. vd Water wrote: > Hi Corinna, >=20 > To answer some of your questions ... >=20 > >> How did you build getpwent? Did you stop your Cygwin shell and restart > >> it? Can you please send the getpwent.exe.stackdump file? >=20 > I used my "regular" setup of Cygwin to compile the sourcefile. Perhaps it= is > there where I went wrong. >=20 > gcc -o getpwent -Wall -std=3Dc99 -fno-builtin -pedantic getpwent.c No, that's unnecessarily detailed, but certainly not wrong. > And, yes, I restarted my Cygwin shell. >=20 > >And, is the machine a domain member machine or not? >=20 > No, not a member of any domain ... The crash looks weird. It looks like your machine doesn't return the machine sid when it's requested. Can you please run the following test application as non-admin and as admin and paster the output for both cases into your reply? Hmm, maybe that's a windows XP thingy? I didn't test this stuff on anything prior to Vista. =3D=3D=3D=3D SNIP =3D=3D=3D=3D #include #include #include #include int main () { static LSA_OBJECT_ATTRIBUTES oa =3D { 0, 0, 0, 0, 0, 0 }; HANDLE lsa; NTSTATUS status; status =3D LsaOpenPolicy (NULL, &oa, POLICY_VIEW_LOCAL_INFORMATION, &lsa); if (status =3D=3D STATUS_SUCCESS) { PPOLICY_DNS_DOMAIN_INFO pdom; PPOLICY_ACCOUNT_DOMAIN_INFO adom; status =3D LsaQueryInformationPolicy (lsa, PolicyDnsDomainInformation, (PVOID *) &pdom); if (status =3D=3D STATUS_SUCCESS) { printf ("pdom name: <%ls> dnsname: <%ls>, sid: %p\n", pdom->Name.Buffer, pdom->DnsDomainName.Buffer, pdom->Sid); LsaFreeMemory (pdom); } else fprintf (stderr, "LsaQueryInformationPolicy(Primary) 0x%x", status); status =3D LsaQueryInformationPolicy (lsa, PolicyAccountDomainInforma= tion, (PVOID *) &adom); if (status =3D=3D STATUS_SUCCESS) { printf ("adom name: <%ls> sid: %p\n", adom->DomainName.Buffer, adom->DomainSid); LsaFreeMemory (adom); } LsaClose (lsa); } return 0; } =3D=3D=3D=3D SNAP =3D=3D=3D=3D Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --P+5wBWHyMmVhWeqO Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTA7CQAAoJEPU2Bp2uRE+gGj0QAJAhBOE95QzRxd68xkOsxVM1 EWOey//HvFN/9SmYiiU5cHMPWghgRCTWCKEDxJXTjIwwNwLK26CQBxKkFM/xsklN QIUGiLI4x0TW+OFzhdspCRTTCQABHZ0cE5Y5Hw7yF069lYqM16Odz/fcRQPYJa0f l0uNIY5cMdD6A8eJDZvTJe84episuC+CxwDqdbie0iBacEQcyaNP7jMwCw3EfXL6 b8KzJRXob4Vc/7RDWyfROY2iloPp+8/IjoWsw358rpS0MCIBpGvaZIRRaaTfNB0i qTwQeaoxA3WMxgRMgf0M/c9IhOQhcyRkYWgDIHK+Q5Cl2vEFMe75wo6E7XsRimBY UZz+w5h1bDmeGd43F8JisoGQh/u1TxmxaVbWalRoujY1YEoxVmXgF/dPhSDjOc8w ZWPGyf1oZY2EcA7cCSj/8QO2kRUcSa+ujgdU7wQ8ML3rmNWY2uWtIm3UJunQubel xf5YUytSTZ8DkZA6monjh9ty6QvVMZyDRNnM7lVnOKhWxZGD1lRIxfdHh25nXLC5 HCOnhGytsI/+MJbBHt0L4S6zkBLV7cNDv65ZnRE1RN6v7DIbKUBYNVs+F/7F9kQk N3jtUWgo8GmeG1iqD/YIbKILqGa5pdn9ueARdEak6Wf24GLDsGRZddcJD3HUEk6/ 33GFehLyzteOE4MEMQOl =TijL -----END PGP SIGNATURE----- --P+5wBWHyMmVhWeqO--