Mail Archives: cygwin/2014/02/18/14:12:37
--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 -