delorie.com/archives/browse.cgi | search |
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:subject:from:to:cc:mime-version | |
:content-type:content-transfer-encoding:in-reply-to:references | |
:message-id; q=dns; s=default; b=NVrsAHvuqhSutRWFZNb6SjBdZJ1v+uM | |
bSGNBxSKUSd2dpLWzX9Xxui3uBNn6rvKDOpYw1v+dV2bD53TYd2RIXnceNs9M9Fl | |
pV3aF1Cr9wIa7CkemK9X3gJBj46FXskQdUwgZgBsJvJAY1qyvJNi4iTkJxJY8XZy | |
LFsTHuPrz2Bk= | |
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:subject:from:to:cc:mime-version | |
:content-type:content-transfer-encoding:in-reply-to:references | |
:message-id; s=default; bh=mLOkufAUpGz5Ia+54IXq94OAaKU=; b=FWo6d | |
ViSC8DbdTdwhabWM06rlbXoPmvqpd70DXGpR8GTbwIjH9tkSd0vVKeWczlJsQT36 | |
y0mzrThF1Wjux/Fk8Y8IlBoUVFQycFAl+/qngRE2/snvwAXCJy3ZIrSlXvIzoQ/K | |
eHVKTM5qCw6O27lbDcd9voVpQdRz4Ybr6sKVWs= | |
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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:1471278, H*f:sk:1471278, HX-Priority:Normal, HImportance:Normal |
X-HELO: | smtp74.iad3a.emailsrvr.com |
X-SMTPDoctor-Processed: | csmtpprox beta |
X-Sender-Id: | rmora AT aboutgolf DOT com |
Date: | Mon, 15 Aug 2016 12:48:52 -0400 (EDT) |
Subject: | Re: /dev/ptmx fails with Azure accounts |
From: | "rmora AT aboutgolf DOT com" <rmora AT aboutgolf DOT com> |
To: | "rmora AT aboutgolf DOT com" <rmora AT aboutgolf DOT com> |
Cc: | cygwin AT cygwin DOT com, cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
X-Type: | plain |
In-Reply-To: | <1471278569.482829599@apps.rackspace.com> |
References: | <20160803143207 DOT GB17526 AT calimero DOT vinschen DOT de> <1470243211 DOT 01868925 AT apps DOT rackspace DOT com> <20160803180012 DOT GC25811 AT calimero DOT vinschen DOT de> <20160803181649 DOT GD25811 AT calimero DOT vinschen DOT de> <1470251109 DOT 311822327 AT apps DOT rackspace DOT com> <20160804070058 DOT GA2333 AT calimero DOT vinschen DOT de> <20160805102751 DOT GK25811 AT calimero DOT vinschen DOT de> <20160807032711 DOT GC31990 AT dimstar DOT local DOT net> <20160808070527 DOT GB32150 AT calimero DOT vinschen DOT de> <20160808114807 DOT GD31990 AT dimstar DOT local DOT net> <20160808115840 DOT GG32150 AT calimero DOT vinschen DOT de> <1471278569 DOT 482829599 AT apps DOT rackspace DOT com> |
X-Auth-ID: | rmora AT aboutgolf DOT com |
Message-ID: | <1471279732.794730680@apps.rackspace.com> |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id u7FGnFRF004803 |
On Monday, August 15, 2016 12:29, "rmora AT aboutgolf DOT com" <rmora AT aboutgolf DOT com> said: > > > Hi > > Sorry for the delay in getting back to this. Here is the output I get: > > Unknown+User AT Lenovo-PC /cygdrive/c/cygwin64 > $ gcc -W azure-check3.c -l Netapi32 -o azure-check3 > azure-check3.c: In function ‘main’: > azure-check3.c:50:1: warning: ‘status’ may be used uninitialized in > this function [-Wmaybe-uninitialized] > printf ("DsGetDcNameW: %u\n", status); > ^ > > Unknown+User AT Lenovo-PC /cygdrive/c/cygwin64 > $ ./azure-check3 > Sid: S-1-12-1-2043906341-1249388050-2635137163-399631282 > Dom\Name: AzureAD\RussellMora > DsGetDcNameW: 0 > NetUserGetInfo(NULL, 3): 2221 > NetUserGetInfo(NULL, 24): 2221 > > Unknown+User AT Lenovo-PC /cygdrive/c/cygwin64 > $ > Oops - I fixed the warning. Now I get this: Unknown+User AT Lenovo-PC /cygdrive/c/cygwin64 $ diff -u azure-check3.c__ORIG azure-check3.c --- azure-check3.c__ORIG 2016-08-15 12:48:06.682783600 -0400 +++ azure-check3.c 2016-08-15 12:45:57.266928000 -0400 @@ -42,8 +42,8 @@ else printf ("LookupAccountSidW: %u\n", GetLastError ()); - ret = DsGetDcNameW (NULL, dom, NULL, NULL, DS_IS_FLAT_NAME | DS_RETURN_DNS_NAME, &pci); - if (ret != ERROR_SUCCESS) + status = DsGetDcNameW (NULL, dom, NULL, NULL, DS_IS_FLAT_NAME | DS_RETURN_DNS_NAME, &pci); + if (status != ERROR_SUCCESS) { printf ("DsGetDcNameW: %u\n", status); pci = NULL; Unknown+User AT Lenovo-PC /cygdrive/c/cygwin64 $ ./azure-check3 Sid: S-1-12-1-2043906341-1249388050-2635137163-399631282 Dom\Name: AzureAD\RussellMora DsGetDcNameW: 1355 NetUserGetInfo(NULL, 3): 2221 NetUserGetInfo(NULL, 24): 2221 Unknown+User AT Lenovo-PC /cygdrive/c/cygwin64 $ -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |