X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <47D3979F.11360D27@dessent.net>
Date: Sat, 08 Mar 2008 23:54:07 -0800
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: csih and sspi with guest accounts
References: <47CE07A2.5030505@cwilson.fastmail.fm> <47CEE4DD.6030608@x-ray.at> <47D2F243.4090309@x-ray.at> <47D39192.2020801@cwilson.fastmail.fm>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Charles Wilson wrote:

> note that Vista and Server 2008 both report "CYGWIN_NT-6.0", so I don't
> really have a good way of distinguishing between them.

FWIW, Microsoft says the way to determine 2k8 from Vista is by checking
if wProductType contains VER_NT_WORKSTATION:
<http://msdn2.microsoft.com/en-us/library/ms724833.aspx>.  Cygwin
already does this internally for wincap and so wincap.is_server ()
should be true for 2k8, but I don't think this is accessible by any
public uname-like interface.

cygcheck also does this for the "-s" output, so grepping that would also
be an option to distinguish 2k8 if it's really necessary, although
cygcheck -s is very slow as it has to search a bunch of path stuff so I
don't think that's all that useful.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

