X-Recipient: archive-cygwin@delorie.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:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=tXABMTRvBabPhYa+
	Yjy9aS97XR0OtHUQFhmWQMXk/dZiJePlo3QoCA014DVLS51V6f8olbeASvRnxtVi
	fERB54FEVWcZ2nShoLpJtnfNj7WaGOD6H8bBQRjBQAbJ4NDEu2B3MSMQ5mZEi33u
	n0EqaJ4+Tsto5uMeU3aVD/ja1NI=
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:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=RBm1HtHt2Q43R4JeUwlGdt
	oc1gk=; b=v8srEl/6bfztB++V/Oa1fcO+DgRJtwvs6QsCYVJvm/ay0TcSoto2yX
	aH1XpLyGacKGWlQzpfGYBUhJmLlNWcWPe6OiEIxIEk70QusUYygEWVN+55ehIVVL
	jCmMc3nPXkTqty2B9GAUcPVxIf3bVBLV3Is77Fy2tbn4SMphimd3Q=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=BAYES_40,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, yandexru, UD:yandex.ru, yandex.ru
X-HELO: forward1m.cmail.yandex.net
Authentication-Results: smtp1m.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Tue, 29 Nov 2016 19:27:41 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <2925977.20161129192741@yandex.ru>
To: Erik Bray <erik.m.bray@gmail.com>, cygwin@cygwin.com
Subject: Re: Retrieving per-process environment block?
In-Reply-To: <CAOTD34bPTUkKiHSmqvczz6juePBD=6PyzabDFfHpYL_cFzyf9A@mail.gmail.com>
References: <CAOTD34ZFH5E3r3AuDOXctss46e1hoU2f9pwE1mt4L674J2Ak_A@mail.gmail.com>   <20161117140012.GA23664@calimero.vinschen.de>  <CAOTD34Y9TRq2Qq8Mn2awTf9SCgz0qnbBa-a117pkSEvz9gaHKQ@mail.gmail.com>  <98eb08bf-5012-fe14-b10c-241b427c4366@cs.umass.edu>  <CAOTD34bPTUkKiHSmqvczz6juePBD=6PyzabDFfHpYL_cFzyf9A@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Erik Bray!

> Thanks for the reply.  The issue here isn't getting the Windows
> process environment--that can be done, albeit trickily [1].  While
> it's true there are security implications, in this case that is
> handled at the OpenProcess call required to obtain a handle to the
> process.  It's true you can't just read the environment from a process
> you don't have permission to.

> The issue here though is reading the Cygwin process's environment
> which is separate from its Windows environment, and the above
> technique is inapplicable.

Update Windows environment block when Cygwin environment is updated.


-- 
With best regards,
Andrey Repin
Tuesday, November 29, 2016 19:26:20

Sorry for my terrible english...


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

