delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/18/14:12:37

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=eMkNv/fDSjhaMQtKr1dI+ZppRHddxPsJ8UTr/TaomGBfWvk8KV5Ai
4fvj0I6K6sHN2lbXIIo5wNvt17WzACt4QXzoK8iM13Apz+JC6qwd12+mYGUzrZeW
qduz+ygXS0+7K47qpG7d7Az5kdLEsQmC1NQ+sYbG3ReEH3iW4znaqc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=wbC4j98tDEe5JXYqW7zhDZB3WvI=; b=YSeinMLNCz6pBuE0OTaePKMRUUtD
kX0N37ejyvvb/s/bARszhrq5ox4S3WhpqzdgYvGc/mZL+1a27XC6ny6ZxuFX6bUt
ZKXidH1BIwY03SbP5a/xhaC3zkjWPfQXIoAoIJqMNv/7ND8GAjsm0nTKbAQQBmu4
a2bn5W59IAEKLIU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Date: Tue, 18 Feb 2014 20:12:17 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Testers needed: New passwd/group handling in Cygwin
Message-ID: <20140218191217.GM2246@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <32194bb90b56df487127030e4af03a81 DOT squirrel AT webmail DOT xs4all DOT nl>
MIME-Version: 1.0
In-Reply-To: <32194bb90b56df487127030e4af03a81.squirrel@webmail.xs4all.nl>
User-Agent: Mutt/1.5.21 (2010-09-15)

--P+5wBWHyMmVhWeqO
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 <stdio.h>
#include <windows.h>
#include <ntstatus.h>
#include <ntsecapi.h>

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

-----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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019